diff options
author | CoprDistGit <infra@openeuler.org> | 2023-09-20 11:17:42 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-09-20 11:17:42 +0000 |
commit | e2ab3c3fc1131020c02df50dc2ecf4e8c454c0ab (patch) | |
tree | 60ab00f87d59bb0c7d2c863b65d2c5ccfd8774c6 /install-with-hardlinks.diff | |
parent | 5b94c33165b2b247e6929598a643bfee776d397c (diff) |
automatic import of libreoffice
Diffstat (limited to 'install-with-hardlinks.diff')
-rw-r--r-- | install-with-hardlinks.diff | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/install-with-hardlinks.diff b/install-with-hardlinks.diff new file mode 100644 index 0000000..956f41f --- /dev/null +++ b/install-with-hardlinks.diff @@ -0,0 +1,13 @@ +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: $!"; |