libreoffice/install-with-hardlinks.diff
Danilo Spinella b0d22f5c91 Accepting request 1239957 from home:dspinella:branches:LibreOffice:Factory
- Update bundled dependencies:
  * curl 8.10.1 -> 8.11.1
  * gpgme 1.23.2 -> 1.24.0
  * libgpg-error 1.50 -> 1.51

OBS-URL: https://build.opensuse.org/request/show/1239957
OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=1204
2025-01-23 16:42:33 +00:00

14 lines
893 B
Diff

Index: libreoffice-7.0.0.0.beta2/solenv/bin/modules/installer/worker.pm
===================================================================
--- libreoffice-7.0.0.0.beta2.orig/solenv/bin/modules/installer/worker.pm
+++ libreoffice-7.0.0.0.beta2/solenv/bin/modules/installer/worker.pm
@@ -347,7 +347,7 @@ sub install_simple ($$$$$$)
`mkdir -p "$destdir$destination"`;
}
else {
- copy ("$sourcepath", "$destdir$destination") || die "Can't copy file: $sourcepath -> $destdir$destination $!";
+ link ("$sourcepath", "$destdir$destination") || die "Can't hardlink file: $sourcepath -> $destdir$destination $!";
my $sourcestat = stat($sourcepath);
utime ($sourcestat->atime, $sourcestat->mtime, "$destdir$destination");
chmod (oct($unixrights), "$destdir$destination") || die "Can't change permissions: $!";