summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-25 17:14:24 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-25 17:14:24 +0000
commitba5b87488e76adc44f9baf97c5da56d9a7c41882 (patch)
tree76963a8ca8a036578e13ebdf481f399f35064179
parent553c2d0a6b221186f8cd8c06921cfbd6971be69f (diff)
downloadurpmi-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.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/urpm.pm b/urpm.pm
index 6b3fd91e..b1d84a46 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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);
}