diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-08-20 16:31:15 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-08-20 16:31:15 +0000 |
commit | 6929bb4fd6e4066a26428e38b2f3a537bb7008b0 (patch) | |
tree | e89c73c770eec8fa0f8a680e58168aecc8e05afe /urpm | |
parent | 89e7eee29e58c218e9546bf719590590b621485a (diff) | |
download | urpmi-6929bb4fd6e4066a26428e38b2f3a537bb7008b0.tar urpmi-6929bb4fd6e4066a26428e38b2f3a537bb7008b0.tar.gz urpmi-6929bb4fd6e4066a26428e38b2f3a537bb7008b0.tar.bz2 urpmi-6929bb4fd6e4066a26428e38b2f3a537bb7008b0.tar.xz urpmi-6929bb4fd6e4066a26428e38b2f3a537bb7008b0.zip |
replace unless with if !
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/select.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/select.pm b/urpm/select.pm index bb5302c6..7317aab2 100644 --- a/urpm/select.pm +++ b/urpm/select.pm @@ -134,7 +134,7 @@ sub _search_packages { my $pack_ra = $pack_name . '-' . $pkg->version; my $pack_a = "$pack_ra-" . $pkg->release; my $pack = "$pack_a." . $pkg->arch; - unless ($options{fuzzy}) { + if (!$options{fuzzy}) { if ($pack eq $v) { $exact{$v} = $id; next; @@ -147,7 +147,7 @@ sub _search_packages { } } $pack =~ /$qv/ and push @{$found{$v}}, $id; - $pack =~ /$qv/i and push @{$foundi{$v}}, $id unless $options{caseinsensitive}; + $pack =~ /$qv/i and push @{$foundi{$v}}, $id if !$options{caseinsensitive}; } } |