summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 6928a35b..fecec1e6 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -711,8 +711,12 @@ sub select_media {
} elsif (@found == 0 && @foundi == 0) {
$urpm->{error}(_("trying to select inexistent medium \"%s\"", $_));
} else { #- multiple element in found or foundi list.
- $urpm->{error}(_("trying to select multiple media: %s", join(", ", map { _("\"%s\"", $_->{name}) }
- (@found ? @found : @foundi))));
+ $urpm->{log}(_("selecting multiple media: %s", join(", ", map { _("\"%s\"", $_->{name}) }
+ (@found ? @found : @foundi))));
+ #- changed behaviour to select all occurence by default.
+ foreach (@found ? @found : @foundi) {
+ $_->{modified} = 1;
+ }
}
}
}