summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-28 09:07:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-28 09:07:04 +0000
commit0be5a05e064a676b72052422f0e8f7e434e4c2c8 (patch)
treecf5ed688e6ee9e17f03033f883270ffe0459681e
parentbf4e66523c253456e7fdf8d1efd3b0c9908b9def (diff)
downloadurpmi-0be5a05e064a676b72052422f0e8f7e434e4c2c8.tar
urpmi-0be5a05e064a676b72052422f0e8f7e434e4c2c8.tar.gz
urpmi-0be5a05e064a676b72052422f0e8f7e434e4c2c8.tar.bz2
urpmi-0be5a05e064a676b72052422f0e8f7e434e4c2c8.tar.xz
urpmi-0be5a05e064a676b72052422f0e8f7e434e4c2c8.zip
factorize
-rw-r--r--urpm/media.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index b21e292e..a6c22286 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -967,8 +967,6 @@ sub _read_existing_synthesis_and_hdlist_if_same_time_and_msize {
same_size_and_mtime(cachedir_with_hdlist($urpm, $medium),
statedir_hdlist($urpm, $medium)) or return;
- unlink cachedir_with_hdlist($urpm, $medium);
-
_read_existing_synthesis_and_hdlist($urpm, $medium);
1;
@@ -983,8 +981,6 @@ sub _read_existing_synthesis_and_hdlist_if_same_md5sum {
#- download hdlist or synthesis file again.
$retrieved_md5sum && $medium->{md5sum} eq $retrieved_md5sum or return;
- unlink cachedir_with_hdlist($urpm, $medium);
-
_read_existing_synthesis_and_hdlist($urpm, $medium);
1;
@@ -993,6 +989,8 @@ sub _read_existing_synthesis_and_hdlist_if_same_md5sum {
sub _read_existing_synthesis_and_hdlist {
my ($urpm, $medium) = @_;
+ unlink cachedir_with_hdlist($urpm, $medium);
+
$urpm->{info}(N("medium \"%s\" is up-to-date", $medium->{name}));
#- the medium is now considered not modified.