diff options
Diffstat (limited to 'urpm/removable.pm')
-rw-r--r-- | urpm/removable.pm | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/urpm/removable.pm b/urpm/removable.pm index 71e8c0ff..411d720d 100644 --- a/urpm/removable.pm +++ b/urpm/removable.pm @@ -216,18 +216,26 @@ sub _examine_removable_medium_ { } #- side-effects: -#- + those of try_mounting_ ($urpm->{removable_mounted}, "mount") -sub try_mounting_non_removable { +#- + those of try_mounting_non_removable ($urpm->{removable_mounted}, "mount") +sub try_mounting_non_removables { my ($urpm, $list) = @_; my @used_media = map { $_->{medium} } _create_blists($urpm->{media}, $list); foreach my $medium (grep { !$_->{removable} } @used_media) { + try_mounting_non_removable($urpm, $medium); + } +} + +#- side-effects: +#- + those of try_mounting_ ($urpm->{removable_mounted}, "mount") +sub try_mounting_non_removable { + my ($urpm, $medium) = @_; + my $dir = file_from_local_url($medium->{url}) or next; -e $dir || try_mounting_($urpm, $dir) or $urpm->{error}(N("unable to access medium \"%s\"", $medium->{name})), next; - } } #- side-effects: none |