[Libreoffice-commits] core.git: solenv/bin
Miklos Vajna (via logerrit)
logerrit at kemper.freedesktop.org
Mon Apr 27 17:30:18 UTC 2020
solenv/bin/modules/installer/worker.pm | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 6dfb8f480e7ff8fdc30e83143edfe5bf6a5e442b
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Fri Apr 24 15:02:08 2020 +0200
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Mon Apr 27 19:29:43 2020 +0200
solenv: handle copying empty directories in the installer
'make test-install -o build' fails without this when
--enable-macosx-sandbox is used. It is harmless in other cases.
Change-Id: Ic62a2c7729402cf45172ccc12fa83b46bee31e78
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92985
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
diff --git a/solenv/bin/modules/installer/worker.pm b/solenv/bin/modules/installer/worker.pm
index fabac8ff3f46..dcdfdce7d28e 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