diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-12-19 14:50:34 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-12-19 14:50:34 +0000 |
commit | 8b7f649d172111d352e6c808fb8512b959948296 (patch) | |
tree | 1a12d878eac3bd793240ff3ca1a0e670a615b32d /urpm | |
parent | fed64bf5e2814aa4fad6d7fac44f768d08af76c4 (diff) | |
download | urpmi-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.pm | 10 |
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))) { |