From 5e8ccd7040193698cf7e81eccdf17019fc911af0 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 26 Jul 2004 11:42:21 +0000 Subject: (update_media) properly handle copy of soft links (preventing urpmi.update faiilure) --- urpm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpm.pm') 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}"; -- cgit v1.2.1