From b102eaf10b8c90396527e72a6152b0ee1491e467 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 26 Feb 2008 19:30:10 +0000 Subject: s/unless/if (!/ --- urpm/removable.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm/removable.pm') diff --git a/urpm/removable.pm b/urpm/removable.pm index cbd56ed2..888eb079 100644 --- a/urpm/removable.pm +++ b/urpm/removable.pm @@ -87,7 +87,7 @@ sub _check_notfound { chomp; my $dir_ = file_from_local_url($_) or next; $dir_ =~ m!/.*/! or next; #- is this really needed?? - unless ($dir) { + if (!$dir) { $dir = $dir_; try_mounting($urpm, $dir, $removable); } @@ -137,7 +137,7 @@ sub _examine_removable_medium { $sources->{$i} = "$urpm->{cachedir}/rpms/$filename"; } } - unless ($sources->{$i}) { + if (!$sources->{$i}) { #- fallback to use other method for retrieving the file later. $urpm->{error}(N("unable to read rpm file [%s] from medium \"%s\"", $filepath, $medium->{name})); } -- cgit v1.2.1