diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-09-03 10:41:57 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-09-03 10:41:57 +0000 |
commit | 8291e63b384bbf6d9cc743b86373d08d7dc6bcc6 (patch) | |
tree | 85c0224aae7463b4c929de6a801920648ac4abd2 | |
parent | 9cbaa4111f1ea5e75313cb9be4dd53fdb31e2601 (diff) | |
download | rpmdrake-8291e63b384bbf6d9cc743b86373d08d7dc6bcc6.tar rpmdrake-8291e63b384bbf6d9cc743b86373d08d7dc6bcc6.tar.gz rpmdrake-8291e63b384bbf6d9cc743b86373d08d7dc6bcc6.tar.bz2 rpmdrake-8291e63b384bbf6d9cc743b86373d08d7dc6bcc6.tar.xz rpmdrake-8291e63b384bbf6d9cc743b86373d08d7dc6bcc6.zip |
perl_checker cleanups
-rwxr-xr-x | rpmdrake | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -87,12 +87,12 @@ sub do_search($$$$$$$) { eval { require MDV::Packdrakeng; $pack = MDV::Packdrakeng->open(archive => $_, quiet => 1) } ? $pack->{toc_f_count} : 0; } @hdlists ); - open my $sf, join(' ','parsehdlist', '--name', + 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); + my ($progresscount, $found); local $_; while (<$sf>) { $searchstop and last; @@ -107,7 +107,7 @@ sub do_search($$$$$$$) { if ($current_search_type eq 'descriptions') { $key =~ /^summary|description$/ or next; } elsif ($current_search_type eq 'summaries') { - $key =~ /^summary$/ or next; + $key eq 'summary' or next; } else { $key eq 'files' or next; } |