summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-07-26 11:42:21 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-07-26 11:42:21 +0000
commit5e8ccd7040193698cf7e81eccdf17019fc911af0 (patch)
tree887050472afb7d77e5748475cfcdade8683fc8b6
parent9197c730882b0ea0e5aedb321394c26685c20ad2 (diff)
downloadurpmi-5e8ccd7040193698cf7e81eccdf17019fc911af0.tar
urpmi-5e8ccd7040193698cf7e81eccdf17019fc911af0.tar.gz
urpmi-5e8ccd7040193698cf7e81eccdf17019fc911af0.tar.bz2
urpmi-5e8ccd7040193698cf7e81eccdf17019fc911af0.tar.xz
urpmi-5e8ccd7040193698cf7e81eccdf17019fc911af0.zip
(update_media) properly handle copy of soft links (preventing
urpmi.update faiilure)
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index e303ac9a..31419d14 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1163,7 +1163,7 @@ this could happen if you mounted manually the directory when creating the medium
unlink "$urpm->{cachedir}/partial/$medium->{hdlist}";
$urpm->{log}(N("copying source hdlist (or synthesis) of \"%s\"...", $medium->{name}));
$options{callback} && $options{callback}('copy', $medium->{name});
- if (system("cp", "-p", "-R", $with_hdlist_dir, "$urpm->{cachedir}/partial/$medium->{hdlist}")) {
+ if (system("cp", "-p", "-R", "-H", $with_hdlist_dir, "$urpm->{cachedir}/partial/$medium->{hdlist}")) {
$options{callback} && $options{callback}('failed', $medium->{name});
#- force error, reported afterwards
unlink "$urpm->{cachedir}/partial/$medium->{hdlist}";