diff options
-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}) { |