From 9ac5875a7aea70e80c2815fa910884a7aad62fb2 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 18 Jun 2007 13:56:14 +0000 Subject: - urpmi.update o only copy previous hdlist in cache dir for rsync, don't do it for wget/curl (it's useless and potentially dangerous when used with "resume") --- urpm/media.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'urpm') diff --git a/urpm/media.pm b/urpm/media.pm index bdabc44d..ee8e790d 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -1487,10 +1487,9 @@ sub _update_medium__parse_if_unmodified__remote { if ($options->{force}) { unlink cachedir_with_hdlist($urpm, $medium, 's'); } else { - #- try to sync (copy if needed) local copy after restored the previous one. - #- this is useful for rsync (?) + #- for rsync, try to sync (copy if needed) local copy after restored the previous one. my $previous_hdlist = statedir_hdlist_or_synthesis($urpm, $medium, 's'); - if (-e $previous_hdlist) { + if (-e $previous_hdlist && urpm::protocol_from_url($medium->{url}) eq 'rsync') { copy_and_own( $previous_hdlist, cachedir_with_hdlist($urpm, $medium, 's'), -- cgit v1.2.1