diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-02-07 21:22:30 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-02-07 21:22:30 +0000 |
commit | 769dd8fddc7e846b3334ccf203d0ff5d12ce0b0e (patch) | |
tree | 9c3cb9af68516e8fc5c0db724ec314f9462bcd78 | |
parent | d4037a344b6afb35fa47c1ca4593a7c0cb8cd9dd (diff) | |
download | urpmi-769dd8fddc7e846b3334ccf203d0ff5d12ce0b0e.tar urpmi-769dd8fddc7e846b3334ccf203d0ff5d12ce0b0e.tar.gz urpmi-769dd8fddc7e846b3334ccf203d0ff5d12ce0b0e.tar.bz2 urpmi-769dd8fddc7e846b3334ccf203d0ff5d12ce0b0e.tar.xz urpmi-769dd8fddc7e846b3334ccf203d0ff5d12ce0b0e.zip |
(_search_packages) make it faster when not using -i flag
-rw-r--r-- | urpm/select.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm/select.pm b/urpm/select.pm index 353451c6..21cd96e6 100644 --- a/urpm/select.pm +++ b/urpm/select.pm @@ -156,10 +156,11 @@ sub _search_packages { push @found, $pack; push @{$found{$v}}, $id; } + next if !$options{caseinsensitive}; if ($pack =~ /$qv/i) { next if member($pack, @found); push @found, $pack; - push @{$foundi{$v}}, $id if !$options{caseinsensitive}; + push @{$foundi{$v}}, $id; } } } |