aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-11 13:38:42 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-11 13:38:42 +0000
commit2da4d1cbc4de6d9cda3da008d85cb3a438dfd6e7 (patch)
treeb570e5945f97436bf32ff81081d8f2c160761a45
parent8392e38a3bee90810fe7db0c5ac3e36509c62f59 (diff)
downloadrpmdrake-2da4d1cbc4de6d9cda3da008d85cb3a438dfd6e7.tar
rpmdrake-2da4d1cbc4de6d9cda3da008d85cb3a438dfd6e7.tar.gz
rpmdrake-2da4d1cbc4de6d9cda3da008d85cb3a438dfd6e7.tar.bz2
rpmdrake-2da4d1cbc4de6d9cda3da008d85cb3a438dfd6e7.tar.xz
rpmdrake-2da4d1cbc4de6d9cda3da008d85cb3a438dfd6e7.zip
(do_search) flush X11 queue only every 10 packages while searching
-rwxr-xr-xrpmdrake6
1 files changed, 4 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index a9912e5c..84148a9e 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -101,8 +101,10 @@ sub do_search($$$$$$$) {
my $update_search_pb = sub {
$progresscount++;
- $progresscount <= $total_size and $searchprogress->set_fraction($progresscount/$total_size);
- $searchw->flush; # refresh and handle clicks
+ if ($progresscount % 10) {
+ $progresscount <= $total_size and $searchprogress->set_fraction($progresscount/$total_size);
+ $searchw->flush ; # refresh and handle clicks
+ }
};
foreach my $medium (grep { !$_->{ignore} } @{$urpm->{media}}) {
$searchstop and last;