diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-07-26 11:42:21 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-07-26 11:42:21 +0000 |
commit | 5e8ccd7040193698cf7e81eccdf17019fc911af0 (patch) | |
tree | 887050472afb7d77e5748475cfcdade8683fc8b6 | |
parent | 9197c730882b0ea0e5aedb321394c26685c20ad2 (diff) | |
download | urpmi-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.pm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}"; |