aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-09-18 08:41:51 +0000
committerThierry Vignaud <tv@mandriva.org>2006-09-18 08:41:51 +0000
commite1d6312b0fa4cfbece57c1deeac1f868a9250d71 (patch)
treee8f115b6ee34a984054a345aed1e1a23260207c7
parent6d8d2bdb372a8055e6d7a6d7c6fb60115dc8838f (diff)
downloadrpmdrake-e1d6312b0fa4cfbece57c1deeac1f868a9250d71.tar
rpmdrake-e1d6312b0fa4cfbece57c1deeac1f868a9250d71.tar.gz
rpmdrake-e1d6312b0fa4cfbece57c1deeac1f868a9250d71.tar.bz2
rpmdrake-e1d6312b0fa4cfbece57c1deeac1f868a9250d71.tar.xz
rpmdrake-e1d6312b0fa4cfbece57c1deeac1f868a9250d71.zip
(build_tree) prevent needlessly rebuilding the tree
-rwxr-xr-xrpmdrake3
1 files changed, 3 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index 334da8f6..4fe8fe5b 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -790,6 +790,9 @@ sub run_treeview_dialog {
}, #- checks $_[0] -> hack for partial tree displaying
build_tree => sub {
my ($add_node, $flat, $mode) = @_;
+ my $old_mode if 0;
+ return if $old_mode eq $mode;
+ $old_mode = $mode;
my @elems;
my $wait; $wait = statusbar_msg(N("Please wait, listing packages...")) if $MODE ne 'update';
gtkflush();