aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-27 09:37:09 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-27 09:37:09 +0000
commitabebc9447eeda941b2484f6dc116166e3b1d63c5 (patch)
tree8bf1eae2f2b4f982f039829f1dee658a7b002a52
parent2b099be3ab710a1a51e341b6a3f7016c8e48e1bc (diff)
downloadrpmdrake-abebc9447eeda941b2484f6dc116166e3b1d63c5.tar
rpmdrake-abebc9447eeda941b2484f6dc116166e3b1d63c5.tar.gz
rpmdrake-abebc9447eeda941b2484f6dc116166e3b1d63c5.tar.bz2
rpmdrake-abebc9447eeda941b2484f6dc116166e3b1d63c5.tar.xz
rpmdrake-abebc9447eeda941b2484f6dc116166e3b1d63c5.zip
(do_search) make search progress dialog appears immediately rather than after a few seconds delay
-rwxr-xr-xrpmdrake20
1 files changed, 10 insertions, 10 deletions
diff --git a/rpmdrake b/rpmdrake
index b48939d6..0fa97352 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -59,16 +59,6 @@ sub do_search($$$$$$$) {
$tree->collapse_all;
my @search_results;
if ($current_search_type ne 'normal') {
- my @hdlists = map {
- my $h = urpm::media::any_hdlist($urpm, $_);
- if_(!$_->{ignore} && ($MODE ne 'update' || $_->{update}) && -r $h, $h);
- } @{$urpm->{media}};
- my $total_size = sum(
- map {
- my $pack;
- eval { require MDV::Packdrakeng; $pack = MDV::Packdrakeng->open(archive => $_, quiet => 1) } ? $pack->{toc_f_count} : 0;
- } @hdlists
- );
my $searchstop;
my $searchw = ugtk2->new(N("Software Management"), grab => 1, transient => $w->{real_window});
gtkadd(
@@ -87,6 +77,16 @@ sub do_search($$$$$$$) {
),
);
$searchw->sync;
+ my @hdlists = map {
+ my $h = urpm::media::any_hdlist($urpm, $_);
+ if_(!$_->{ignore} && ($MODE ne 'update' || $_->{update}) && -r $h, $h);
+ } @{$urpm->{media}};
+ my $total_size = sum(
+ map {
+ my $pack;
+ eval { require MDV::Packdrakeng; $pack = MDV::Packdrakeng->open(archive => $_, quiet => 1) } ? $pack->{toc_f_count} : 0;
+ } @hdlists
+ );
open my $sf, 'parsehdlist --fileswinfo --description --summary ' . join(' ', map { "'$_'" } @hdlists) . ' |';
my ($pkg, $progresscount);
local $_;