summaryrefslogtreecommitdiffstats
path: root/urpm/removable.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-29 11:07:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-29 11:07:11 +0000
commitbaf068fed48770a38dc621da01369848ae042dc8 (patch)
treea9d60ec0f15113e362fce16ba70b2ad13fad327a /urpm/removable.pm
parent3ed571a73be34a994d08c0967ee72632000e5632 (diff)
downloadurpmi-baf068fed48770a38dc621da01369848ae042dc8.tar
urpmi-baf068fed48770a38dc621da01369848ae042dc8.tar.gz
urpmi-baf068fed48770a38dc621da01369848ae042dc8.tar.bz2
urpmi-baf068fed48770a38dc621da01369848ae042dc8.tar.xz
urpmi-baf068fed48770a38dc621da01369848ae042dc8.zip
if cdrom is not mounted, _check_notfound should fail, but nicely
Diffstat (limited to 'urpm/removable.pm')
-rw-r--r--urpm/removable.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm/removable.pm b/urpm/removable.pm
index 143f01ab..8addf002 100644
--- a/urpm/removable.pm
+++ b/urpm/removable.pm
@@ -161,6 +161,8 @@ sub _mount_cdrom_and_check_notfound {
sub _check_notfound {
my ($blist) = @_;
+ $blist->{medium}{mntpoint} or return;
+
foreach (values %{$blist->{list}}) {
my $dir_ = _filepath($blist->{medium}, $_) or next;
-r $dir_ or return 1;