summaryrefslogtreecommitdiffstats
path: root/urpm/select.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-07 21:22:30 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-07 21:22:30 +0000
commit769dd8fddc7e846b3334ccf203d0ff5d12ce0b0e (patch)
tree9c3cb9af68516e8fc5c0db724ec314f9462bcd78 /urpm/select.pm
parentd4037a344b6afb35fa47c1ca4593a7c0cb8cd9dd (diff)
downloadurpmi-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
Diffstat (limited to 'urpm/select.pm')
-rw-r--r--urpm/select.pm3
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;
}
}
}