aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-11-24 21:15:07 +0000
committerThierry Vignaud <tv@mandriva.org>2008-11-24 21:15:07 +0000
commitea603b76734ee0a47b6e3e42f9f7dbde80196324 (patch)
treea16056325df328abb9cd33eaeb9ae548a6070942
parent3ebc68f21b99e748fc08f8132da4a125830b152f (diff)
downloadrpmdrake-ea603b76734ee0a47b6e3e42f9f7dbde80196324.tar
rpmdrake-ea603b76734ee0a47b6e3e42f9f7dbde80196324.tar.gz
rpmdrake-ea603b76734ee0a47b6e3e42f9f7dbde80196324.tar.bz2
rpmdrake-ea603b76734ee0a47b6e3e42f9f7dbde80196324.tar.xz
rpmdrake-ea603b76734ee0a47b6e3e42f9f7dbde80196324.zip
(do_search) when performing search in names, only look at name, not at
full name (n-e-v-r) (#45410)
-rw-r--r--NEWS4
-rwxr-xr-xrpmdrake2
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 7651933f..2cbb3268 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+- rpmdrake:
+ o only look at name, not at full name (n-e-v-r) when performing
+ search in names (#45410)
+
Version 5.4 - 24 November 2008, Thierry Vignaud
- edit-urpm-sources:
diff --git a/rpmdrake b/rpmdrake
index 655d0e56..79556615 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -72,7 +72,7 @@ sub do_search($$$$$$$) {
if ($current_search_type eq 'normal') {
my $count;
foreach (@filtered_pkgs) {
- next if !/$entry_rx/;
+ next if first(split_fullname($_)) !~ /$entry_rx/;
push @search_results, $_;
# FIXME: should be done for all research types
last if $count++ > 2000;