diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-06 14:04:40 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-06 14:04:40 +0000 |
commit | c3013e208935bac1b1f546f36c2beb0e51714817 (patch) | |
tree | 80772850d55ff8bee309f8795bf924be7766e4d7 /urpm/media.pm | |
parent | 6f23b47db6f4a4e69267eb4fd5b70f21fd1fa6d0 (diff) | |
download | urpmi-c3013e208935bac1b1f546f36c2beb0e51714817.tar urpmi-c3013e208935bac1b1f546f36c2beb0e51714817.tar.gz urpmi-c3013e208935bac1b1f546f36c2beb0e51714817.tar.bz2 urpmi-c3013e208935bac1b1f546f36c2beb0e51714817.tar.xz urpmi-c3013e208935bac1b1f546f36c2beb0e51714817.zip |
handle --searchmedia <media1>,...,<mediaN>
(ie more than one searchmedia)
Diffstat (limited to 'urpm/media.pm')
-rw-r--r-- | urpm/media.pm | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/urpm/media.pm b/urpm/media.pm index cfc3ab8a..265ff667 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -592,13 +592,9 @@ sub _parse_media { unless ($_->{ignore}) { _check_after_reading_hdlist_or_synthesis($urpm, $_); } - unless ($_->{ignore}) { - if ($_->{searchmedia}) { - ($urpm->{searchmedia}{start}, $urpm->{searchmedia}{end}) = ($_->{start}, $_->{end}); - $urpm->{log}(N("Search start: %s end: %s", - $urpm->{searchmedia}{start}, $urpm->{searchmedia}{end})); - delete $_->{searchmedia}; - } + if ($_->{searchmedia}) { + $urpm->{searchmedia} = 1; + $urpm->{log}(N("Search start: %s end: %s", $_->{start}, $_->{end})); } } |