diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-03-25 17:14:24 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-03-25 17:14:24 +0000 |
commit | ba5b87488e76adc44f9baf97c5da56d9a7c41882 (patch) | |
tree | 76963a8ca8a036578e13ebdf481f399f35064179 | |
parent | 553c2d0a6b221186f8cd8c06921cfbd6971be69f (diff) | |
download | urpmi-ba5b87488e76adc44f9baf97c5da56d9a7c41882.tar urpmi-ba5b87488e76adc44f9baf97c5da56d9a7c41882.tar.gz urpmi-ba5b87488e76adc44f9baf97c5da56d9a7c41882.tar.bz2 urpmi-ba5b87488e76adc44f9baf97c5da56d9a7c41882.tar.xz urpmi-ba5b87488e76adc44f9baf97c5da56d9a7c41882.zip |
Allow to add several different iso media that point to the same mount point.
-rw-r--r-- | urpm.pm | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -354,14 +354,14 @@ sub probe_removable_device { $urpm->{log}(N("too many mount points for removable medium \"%s\"", $medium->{name})); $urpm->{log}(N("taking removable device as \"%s\"", join ',', map { $infos{$_}{device} } @mntpoints)); } - if (@mntpoints) { + if (is_iso($medium->{removable})) { + $urpm->{log}(N("Medium \"%s\" is an ISO image, will be mounted on-the-fly", $medium->{name})); + } elsif (@mntpoints) { if ($medium->{removable} && $medium->{removable} ne $infos{$mntpoints[-1]}{device}) { $urpm->{log}(N("using different removable device [%s] for \"%s\"", $infos{$mntpoints[-1]}{device}, $medium->{name})); } $medium->{removable} = $infos{$mntpoints[-1]}{device}; - } elsif (is_iso($medium->{removable})) { - $urpm->{log}(N("Medium \"%s\" is an ISO image, will be mounted on-the-fly", $medium->{name})); } else { $urpm->{error}(N("unable to retrieve pathname for removable medium \"%s\"", $medium->{name})); } @@ -676,7 +676,7 @@ sub add_medium { } else { $medium->{hdlist} = "hdlist.$name.cz"; $medium->{list} = "list.$name"; - #- check to see if the medium is using file protocol or removable medium. + #- check if the medium is using a local or a removable medium. $url =~ m!^(?:(removable[^:]*|file):/)?(/.*)! and $urpm->probe_removable_device($medium); } |