aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-08-05 20:46:15 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-08-05 20:46:15 +0000
commit4a7ca605675e9aaa8e77157068252f2e788538df (patch)
tree02f3421e6010db59cf7e557ab66c02d0c8fbca5f
parent5f9324204cbc07cc910d2ef6980ba1c3a7ce7a9e (diff)
downloadrpmdrake-4a7ca605675e9aaa8e77157068252f2e788538df.tar
rpmdrake-4a7ca605675e9aaa8e77157068252f2e788538df.tar.gz
rpmdrake-4a7ca605675e9aaa8e77157068252f2e788538df.tar.bz2
rpmdrake-4a7ca605675e9aaa8e77157068252f2e788538df.tar.xz
rpmdrake-4a7ca605675e9aaa8e77157068252f2e788538df.zip
- when searching in files, limit search results to
listed packages or the program might crash - when searching in files, do it case sensitive
-rwxr-xr-xrpmdrake4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index d261dc8f..b0badc1d 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -422,8 +422,8 @@ sub run_treeview_dialog {
/^NAME<([^>]+)> VERSION<([^>]+)> RELEASE<([^>]+)>/ and $pkg = "$1-$2-$3", next;
$pkg or next;
my (undef, $file) = split ':', $_;
- if (eval { $file =~ /$entry/i }) {
- push @search_results, $pkg;
+ if (eval { $file =~ /$entry/ }) {
+ exists $pkgs->{$pkg} and push @search_results, $pkg;
$pkg = '';
}
}