diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-03-25 16:13:34 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-03-25 16:13:34 +0000 |
commit | 553c2d0a6b221186f8cd8c06921cfbd6971be69f (patch) | |
tree | 5c9ceb9c798129f0876cd130733fc1c387c25159 | |
parent | ed8a3c960512c119a56985ee8b1beb400b294b64 (diff) | |
download | urpmi-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
-rw-r--r-- | urpm.pm | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |