From baf068fed48770a38dc621da01369848ae042dc8 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 29 Feb 2008 11:07:11 +0000 Subject: if cdrom is not mounted, _check_notfound should fail, but nicely --- urpm/removable.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'urpm') 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; -- cgit v1.2.1