[Libreoffice-commits] core.git: Branch 'distro/collabora/lov-6.4' - solenv/bin

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Fri Apr 24 14:02:59 UTC 2020


 solenv/bin/modules/installer/worker.pm |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 13ba46afec160532a68e2c2988e240b2edcad52e
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Fri Apr 24 15:02:08 2020 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Apr 24 15:41:50 2020 +0200

    solenv: handle copying empty directories in the installer
    
    'make test-install -o build' fails without this on this branch. It will
    be necessary to check if this is still needed on master or not.
    
    Change-Id: Ic62a2c7729402cf45172ccc12fa83b46bee31e78

diff --git a/solenv/bin/modules/installer/worker.pm b/solenv/bin/modules/installer/worker.pm
index fabac8ff3f46..d002595c69fe 100644
--- a/solenv/bin/modules/installer/worker.pm
+++ b/solenv/bin/modules/installer/worker.pm
@@ -343,6 +343,9 @@ sub install_simple ($$$$$$)
         if ( -l "$sourcepath" ) {
             symlink (readlink ("$sourcepath"), "$destdir$destination") || die "Can't symlink $destdir$destination -> " . readlink ("$sourcepath") . "$!";
         }
+        elsif ( -d "$sourcepath" && installer::systemactions::is_empty_dir("$sourcepath") ) {
+            `mkdir -p "$destdir$destination"`;
+        }
         else {
             copy ("$sourcepath", "$destdir$destination") || die "Can't copy file: $sourcepath -> $destdir$destination $!";
             my $sourcestat = stat($sourcepath);


More information about the Libreoffice-commits mailing list