diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-05 20:46:15 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-05 20:46:15 +0000 |
commit | 4a7ca605675e9aaa8e77157068252f2e788538df (patch) | |
tree | 02f3421e6010db59cf7e557ab66c02d0c8fbca5f | |
parent | 5f9324204cbc07cc910d2ef6980ba1c3a7ce7a9e (diff) | |
download | rpmdrake-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-x | rpmdrake | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 = ''; } } |