aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-08-13 11:43:19 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-08-13 11:43:19 +0000
commit78ff8f3bdd1c46a4075def8499306d80e7bebb44 (patch)
tree20543c22d7e491649fa10101dbf0fc6211f7b3d8
parent2e4d61219704140bee0892caa1e1d84ae3088872 (diff)
downloadrpmdrake-78ff8f3bdd1c46a4075def8499306d80e7bebb44.tar
rpmdrake-78ff8f3bdd1c46a4075def8499306d80e7bebb44.tar.gz
rpmdrake-78ff8f3bdd1c46a4075def8499306d80e7bebb44.tar.bz2
rpmdrake-78ff8f3bdd1c46a4075def8499306d80e7bebb44.tar.xz
rpmdrake-78ff8f3bdd1c46a4075def8499306d80e7bebb44.zip
perl checker
-rwxr-xr-xrpmdrake4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index 0157418f..3810a4c5 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -272,7 +272,7 @@ sub do_search($$$$$$$) {
if ($current_search_type ne 'normal') {
if ($MODE eq 'remove') {
if ($current_search_type eq 'descriptions') {
- @search_results = map { if_(eval { ($pkgs->{$_}{summary}.$pkgs->{$_}{description}) =~ /$entry/i }, $_) } keys %$pkgs;
+ @search_results = grep { eval { ($pkgs->{$_}{summary}.$pkgs->{$_}{description}) =~ /$entry/i } } keys %$pkgs;
} else {
slow_func(N("Please wait, searching..."),
sub { db->traverse(sub { push @search_results, map { if_(eval { /$entry/i }, my_fullname($_[0])) } $_[0]->files });
@@ -364,7 +364,7 @@ sub run_treeview_dialog {
my $formatlistpkg = sub { myformatList(sort { uc($a) cmp uc($b) } @_) };
my $is_locale_available = sub {
- grep { $urpm->{depslist}[$_]->flag_selected } keys %{$urpm->{provides}{$_[0]} || {}} and return 1;
+ any { $urpm->{depslist}[$_]->flag_selected } keys %{$urpm->{provides}{$_[0]} || {}} and return 1;
my $found;
db->traverse_tag('name', [ $_ ], sub { $found ||= 1 });
return $found;