summaryrefslogtreecommitdiffstats
path: root/urpm/select.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-11-28 16:21:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-11-28 16:21:06 +0000
commita262316adcbea290d2ad81eb071714dc81d22006 (patch)
tree24a97ac2a23c580b8cc57b5a24e43361329ae3a6 /urpm/select.pm
parent7d97db9ed843c8b3550ef282368727094eaff15b (diff)
downloadurpmi-a262316adcbea290d2ad81eb071714dc81d22006.tar
urpmi-a262316adcbea290d2ad81eb071714dc81d22006.tar.gz
urpmi-a262316adcbea290d2ad81eb071714dc81d22006.tar.bz2
urpmi-a262316adcbea290d2ad81eb071714dc81d22006.tar.xz
urpmi-a262316adcbea290d2ad81eb071714dc81d22006.zip
- urpmq:
o bugfix previous release: "urpmq --fuzzy foo" should display all "*foo*" matches
Diffstat (limited to 'urpm/select.pm')
-rw-r--r--urpm/select.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index e25b0754..b10a8192 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -184,7 +184,7 @@ sub _search_packages {
#- we found a non-exact match
$result = 'substring';
}
- foreach (values %l) {
+ $name2ids{$v} = join('|', map {
my $best;
foreach (@$_) {
if ($best && $best != $_) {
@@ -193,9 +193,8 @@ sub _search_packages {
$best = $_;
}
}
- my @l = grep { $_->fullname eq $best->fullname } @$_;
- $name2ids{$v} = join('|', map { $_->id } @l);
- }
+ map { $_->id } grep { $_->fullname eq $best->fullname } @$_;
+ } values %l);
}
}
}