summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-08 14:20:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-08 14:20:02 +0000
commit312accc79ce787e5d1b57533f28e512a382e0c92 (patch)
tree84179b2486575f45e7a4740fdf79b9f50228cdbd /urpm
parente2538a0316a95b8ef49c715023cd84c8e4b7a3b7 (diff)
downloadurpmi-312accc79ce787e5d1b57533f28e512a382e0c92.tar
urpmi-312accc79ce787e5d1b57533f28e512a382e0c92.tar.gz
urpmi-312accc79ce787e5d1b57533f28e512a382e0c92.tar.bz2
urpmi-312accc79ce787e5d1b57533f28e512a382e0c92.tar.xz
urpmi-312accc79ce787e5d1b57533f28e512a382e0c92.zip
cosmetic: display "updated medium xxx" when we're done with it
Diffstat (limited to 'urpm')
-rw-r--r--urpm/media.pm9
1 files changed, 4 insertions, 5 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index 81473f39..aa9c29ec 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1287,6 +1287,8 @@ sub _update_medium_ {
}
}
+ my $is_updating = -e statedir_synthesis($urpm, $medium);
+
if (!$medium->{virtual}) {
if (file_size(cachedir_with_synthesis($urpm, $medium)) < 20) {
$urpm->{error}(N("no synthesis file found for medium \"%s\"", $medium->{name}));
@@ -1307,11 +1309,6 @@ sub _update_medium_ {
return;
}
- if (-e statedir_synthesis($urpm, $medium)) {
- $urpm->{info}(N("updated medium \"%s\"", $medium->{name}));
- }
-
-
#- use new files
unlink statedir_synthesis($urpm, $medium);
@@ -1331,6 +1328,8 @@ sub _update_medium_ {
$medium->{'key-ids'} ||= _read_cachedir_pubkey($urpm, $medium, $options{wait_lock});
generate_medium_names($urpm, $medium);
+ $is_updating and $urpm->{info}(N("updated medium \"%s\"", $medium->{name}));
+
1;
}