summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-19 14:50:34 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-19 14:50:34 +0000
commit8b7f649d172111d352e6c808fb8512b959948296 (patch)
tree1a12d878eac3bd793240ff3ca1a0e670a615b32d /urpm
parentfed64bf5e2814aa4fad6d7fac44f768d08af76c4 (diff)
downloadurpmi-8b7f649d172111d352e6c808fb8512b959948296.tar
urpmi-8b7f649d172111d352e6c808fb8512b959948296.tar.gz
urpmi-8b7f649d172111d352e6c808fb8512b959948296.tar.bz2
urpmi-8b7f649d172111d352e6c808fb8512b959948296.tar.xz
urpmi-8b7f649d172111d352e6c808fb8512b959948296.zip
small cleanup
Diffstat (limited to 'urpm')
-rw-r--r--urpm/media.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index 829962c3..d481f8c8 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1284,12 +1284,12 @@ sub _update_medium_first_pass {
}
}
- if (!$medium->{virtual} && file_size(cachedir_with_synthesis($urpm, $medium)) < 20) {
- $urpm->{error}(N("no synthesis file found for medium \"%s\"", $medium->{name}));
- return;
- }
-
if (!$medium->{virtual}) {
+ if (file_size(cachedir_with_synthesis($urpm, $medium)) < 20) {
+ $urpm->{error}(N("no synthesis file found for medium \"%s\"", $medium->{name}));
+ return;
+ }
+
$options{callback} and $options{callback}('parse', $medium->{name});
if (_parse_synthesis($urpm, $medium, cachedir_with_synthesis($urpm, $medium))) {