aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-27 09:35:33 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-27 09:35:33 +0000
commit7f10dc5f7c781b509952f1630c9e155d04b751d0 (patch)
tree482677650238b4ab674eddba16127093b23043b3
parentdebdc29f6d1c5a206f31bcc7cf9d909e5c6eaa85 (diff)
downloadrpmdrake-7f10dc5f7c781b509952f1630c9e155d04b751d0.tar
rpmdrake-7f10dc5f7c781b509952f1630c9e155d04b751d0.tar.gz
rpmdrake-7f10dc5f7c781b509952f1630c9e155d04b751d0.tar.bz2
rpmdrake-7f10dc5f7c781b509952f1630c9e155d04b751d0.tar.xz
rpmdrake-7f10dc5f7c781b509952f1630c9e155d04b751d0.zip
(do_search) kill dead code
-rwxr-xr-xrpmdrake17
1 files changed, 0 insertions, 17 deletions
diff --git a/rpmdrake b/rpmdrake
index 9ad9695b..40173ea6 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -59,22 +59,6 @@ sub do_search($$$$$$$) {
$tree->collapse_all;
my @search_results;
if ($current_search_type ne 'normal') {
- if ($MODE eq 'remove') {
- if ($current_search_type eq 'descriptions') {
- @search_results = grep { ($pkgs->{$_}{summary} . $pkgs->{$_}{description}) =~ $entry_rx } @filtered_pkgs;
- } else {
- slow_func_statusbar(
- N("Please wait, searching..."),
- $w->{real_window},
- sub {
- open_rpm_db()->traverse(sub {
- push @search_results, map { if_($_ =~ $entry_rx, urpm_name($_[0])) } $_[0]->files;
- });
- @search_results = grep { exists $pkgs->{$_} } uniq(@search_results);
- },
- );
- }
- } else {
my @hdlists = map {
my $h = urpm::media::any_hdlist($urpm, $_);
if_(!$_->{ignore} && ($MODE ne 'update' || $_->{update}) && -r $h, $h);
@@ -129,7 +113,6 @@ sub do_search($$$$$$$) {
close $sf;
@search_results = uniq(@search_results); #- there can be multiple packages with same version/release for different arch's
$searchw->destroy;
- }
} else {
my $count;
foreach (@filtered_pkgs) {