diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-04-28 08:00:42 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-04-28 08:00:42 +0000 |
commit | 0853cb49f949f57f0eddcfe9a3a16f70ed52b04e (patch) | |
tree | c1d15ef4802e30f171aab4e11a5c1ab2da4f4329 | |
parent | b5365043ff497db6f55e80535a536b3725d539d2 (diff) | |
download | urpmi-0853cb49f949f57f0eddcfe9a3a16f70ed52b04e.tar urpmi-0853cb49f949f57f0eddcfe9a3a16f70ed52b04e.tar.gz urpmi-0853cb49f949f57f0eddcfe9a3a16f70ed52b04e.tar.bz2 urpmi-0853cb49f949f57f0eddcfe9a3a16f70ed52b04e.tar.xz urpmi-0853cb49f949f57f0eddcfe9a3a16f70ed52b04e.zip |
Copy files using -L, to avoid copying relative symbolic links with -R
(this made urpmi.addmedia fail over nfs when the target hdlist was actually a
symbolic link)
-rw-r--r-- | urpm/util.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/util.pm b/urpm/util.pm index 6e8e483f..16f3a2cc 100644 --- a/urpm/util.pm +++ b/urpm/util.pm @@ -86,7 +86,7 @@ sub md5sum { sub copy { my ($file, $dest) = @_; - !system("/bin/cp", "-p", "-R", $file, $dest); + !system("/bin/cp", "-p", "-L", "-R", $file, $dest); } sub move { |