From 3cd59d9a205add7dd714cde4c9cc07743f993813 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 26 Feb 2008 23:02:08 +0000 Subject: _mount_it() can't fail! --- urpm/removable.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/urpm/removable.pm b/urpm/removable.pm index 582efd74..d8d277cd 100644 --- a/urpm/removable.pm +++ b/urpm/removable.pm @@ -187,7 +187,6 @@ sub _examine_removable_medium_ { my $dir = file_from_local_url($medium->{url}); - if (-e $dir) { while (my ($i, $url) = each %$medium_list) { my $filepath = _filepath($url) or next; @@ -198,9 +197,6 @@ sub _examine_removable_medium_ { $urpm->{error}(N("unable to read rpm file [%s] from medium \"%s\"", $filepath, $medium->{name})); } } - } else { - $urpm->{error}(N("medium \"%s\" is not available", $medium->{name})); - } } #- side-effects: -- cgit v1.2.1