summaryrefslogtreecommitdiffstats
path: root/urpm/removable.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-26 19:30:10 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-26 19:30:10 +0000
commitb102eaf10b8c90396527e72a6152b0ee1491e467 (patch)
treeef139431b1b84fd437ff23b7209fab0fc649a544 /urpm/removable.pm
parent98a27c2141b2ef3ba6f1a191aac672350c318fa1 (diff)
downloadurpmi-b102eaf10b8c90396527e72a6152b0ee1491e467.tar
urpmi-b102eaf10b8c90396527e72a6152b0ee1491e467.tar.gz
urpmi-b102eaf10b8c90396527e72a6152b0ee1491e467.tar.bz2
urpmi-b102eaf10b8c90396527e72a6152b0ee1491e467.tar.xz
urpmi-b102eaf10b8c90396527e72a6152b0ee1491e467.zip
s/unless/if (!/
Diffstat (limited to 'urpm/removable.pm')
-rw-r--r--urpm/removable.pm4
1 files changed, 2 insertions, 2 deletions
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}));
}