aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-27 09:38:22 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-27 09:38:22 +0000
commit4e3fa96231d59ca43ff01ce0e09ed04127327c9d (patch)
tree107a4884a9b05411cf7a14fff938712f15a70daa
parent22ebb69f47bb7493793df876d7ae4e79f5a8cc30 (diff)
downloadrpmdrake-4e3fa96231d59ca43ff01ce0e09ed04127327c9d.tar
rpmdrake-4e3fa96231d59ca43ff01ce0e09ed04127327c9d.tar.gz
rpmdrake-4e3fa96231d59ca43ff01ce0e09ed04127327c9d.tar.bz2
rpmdrake-4e3fa96231d59ca43ff01ce0e09ed04127327c9d.tar.xz
rpmdrake-4e3fa96231d59ca43ff01ce0e09ed04127327c9d.zip
(do_search,run_treeview_dialog) enable to search only in summaries
(previously "in descriptions" used to search in both in descriptions and in summaries
-rwxr-xr-xrpmdrake7
1 files changed, 6 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 1f518f1c..58b6e8d3 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -90,6 +90,7 @@ sub do_search($$$$$$$) {
open my $sf, join(' ','parsehdlist', '--name',
if_($current_search_type eq 'files', '--files'),
if_($current_search_type eq 'descriptions', '--description', '--summary'),
+ if_($current_search_type eq 'summaries', '--summary'),
map { "'$_'" } @hdlists) . ' |';
my ($pkg, $progresscount, $found);
local $_;
@@ -105,6 +106,8 @@ sub do_search($$$$$$$) {
my (undef, $key, $value) = split ':', $_;
if ($current_search_type eq 'descriptions') {
$key =~ /^summary|description$/ or next;
+ } elsif ($current_search_type eq 'summaries') {
+ $key =~ /^summary$/ or next;
} else {
$key eq 'files' or next;
}
@@ -290,7 +293,7 @@ sub run_treeview_dialog {
$options->{tree_submode} ||= $default_radio;
$options->{tree_subflat} ||= $options->{state}{flat};
- my @search_types = qw(normal descriptions files);
+ my @search_types = qw(normal descriptions summaries files);
my $current_search_type = $search_types[0];
my $search_types_optionmenu = Gtk2::ComboBox->new;
{
@@ -304,6 +307,8 @@ sub run_treeview_dialog {
$iter = $search_types_optionmenu->get_model->insert(1);
$search_types_optionmenu->get_model->set($iter, 0, N("in descriptions"));
$iter = $search_types_optionmenu->get_model->insert(2);
+ $search_types_optionmenu->get_model->set($iter, 0, N("in summaries"));
+ $iter = $search_types_optionmenu->get_model->insert(3);
$search_types_optionmenu->get_model->set($iter, 0, N("in file names"));
$search_types_optionmenu->set_active(0);
$search_types_optionmenu->signal_connect(