summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-25 16:13:34 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-25 16:13:34 +0000
commit553c2d0a6b221186f8cd8c06921cfbd6971be69f (patch)
tree5c9ceb9c798129f0876cd130733fc1c387c25159 /urpm.pm
parented8a3c960512c119a56985ee8b1beb400b294b64 (diff)
downloadurpmi-553c2d0a6b221186f8cd8c06921cfbd6971be69f.tar
urpmi-553c2d0a6b221186f8cd8c06921cfbd6971be69f.tar.gz
urpmi-553c2d0a6b221186f8cd8c06921cfbd6971be69f.tar.bz2
urpmi-553c2d0a6b221186f8cd8c06921cfbd6971be69f.tar.xz
urpmi-553c2d0a6b221186f8cd8c06921cfbd6971be69f.zip
Don't try to mounts isos that are already mounted
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 8ecd2463..6b3fd91e 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1067,7 +1067,7 @@ sub update_media {
unlink "$urpm->{cachedir}/partial/$_";
}
- #- 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.
if (($prefix, $dir) = $medium->{url} =~ m!^(?:(removable[^:]*|file):/)?(/.*)!) {
$prefix ||= 'file';
#- check for a reconfig.urpmi file (if not already reconfigured)
@@ -1086,7 +1086,7 @@ sub update_media {
#- the directory given does not exist and may be accessible
#- by mounting some other directory. Try to figure it out and mount
#- mount everything that might be necessary.
- $urpm->try_mounting(
+ -d $dir or $urpm->try_mounting(
$options{force} < 2 && ($options{probe_with} || $medium->{with_hdlist})
? $with_hdlist_dir : $dir,
#- in case of an iso image, pass its name