diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-05 09:54:24 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-05 09:54:24 +0000 |
commit | 69a8ae6b3cd30af6a75d7f03b9452596401d1b5c (patch) | |
tree | 34ed48bbf3715a318c3d1c43c28d8d7c5bd5a385 /urpm | |
parent | 561b6b1eaf2cf64d7c33b69d57ae679a8cf874c3 (diff) | |
download | urpmi-69a8ae6b3cd30af6a75d7f03b9452596401d1b5c.tar urpmi-69a8ae6b3cd30af6a75d7f03b9452596401d1b5c.tar.gz urpmi-69a8ae6b3cd30af6a75d7f03b9452596401d1b5c.tar.bz2 urpmi-69a8ae6b3cd30af6a75d7f03b9452596401d1b5c.tar.xz urpmi-69a8ae6b3cd30af6a75d7f03b9452596401d1b5c.zip |
inline function select_media() (for next commit)
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/media.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/urpm/media.pm b/urpm/media.pm index ae4c9154..7e94100a 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -541,10 +541,11 @@ sub configure { } } if ($options{searchmedia}) { - select_media($urpm, $options{searchmedia}); #- Ensure this media has been selected - if (my $medium = name2medium($urpm, $options{searchmedia})) { - _tempignore($medium, 0); - $medium->{searchmedia} = 1; + foreach (select_media_by_name($urpm, [ $options{searchmedia} ])) { + #- Ensure this media is selected + $_->{modified} = 1; + _tempignore($_, 0); + $_->{searchmedia} = 1; } } if ($options{excludemedia}) { |