summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-21 09:34:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-21 09:34:44 +0000
commit0396e57b9d6e88dcfa54d696beec68fd506020ef (patch)
treef9982005a5258f35a79db457fd4fae3d9b59e0e7
parent946c2730f4cfd4b18c5a292481b60284bc95a34b (diff)
downloadurpmi-0396e57b9d6e88dcfa54d696beec68fd506020ef.tar
urpmi-0396e57b9d6e88dcfa54d696beec68fd506020ef.tar.gz
urpmi-0396e57b9d6e88dcfa54d696beec68fd506020ef.tar.bz2
urpmi-0396e57b9d6e88dcfa54d696beec68fd506020ef.tar.xz
urpmi-0396e57b9d6e88dcfa54d696beec68fd506020ef.zip
use _parse_maybe_hdlist_or_synthesis()
-rw-r--r--urpm.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/urpm.pm b/urpm.pm
index 6e597e47..1231089e 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1086,11 +1086,7 @@ sub _update_media__when_not_modified {
delete @$medium{qw(start end)};
if ($medium->{virtual}) {
if (file_from_file_url($medium->{url})) {
- if ($medium->{synthesis}) {
- _parse_synthesis($urpm, $medium, hdlist_or_synthesis_for_virtual_medium($medium));
- } else {
- _parse_hdlist($urpm, $medium, hdlist_or_synthesis_for_virtual_medium($medium));
- }
+ _parse_maybe_hdlist_or_synthesis($urpm, $medium, hdlist_or_synthesis_for_virtual_medium($medium));
} else {
$urpm->{error}(N("virtual medium \"%s\" is not local, medium ignored", $medium->{name}));
$medium->{ignore} = 1;