diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-11-28 16:21:06 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-11-28 16:21:06 +0000 |
commit | a262316adcbea290d2ad81eb071714dc81d22006 (patch) | |
tree | 24a97ac2a23c580b8cc57b5a24e43361329ae3a6 | |
parent | 7d97db9ed843c8b3550ef282368727094eaff15b (diff) | |
download | urpmi-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
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | urpm/select.pm | 7 |
2 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,6 @@ - urpmq: o new option --requires-recursive (alias of option -d) + o bugfix previous release: "urpmq --fuzzy foo" should display all "*foo*" matches Version 4.10.15 - 26 November 2007, by Pascal "Pixel" Rigaux 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); } } } |