aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-09-18 12:50:38 +0000
committerThierry Vignaud <tv@mandriva.org>2006-09-18 12:50:38 +0000
commit6e3379ac7af9db3d40fd762bbb63d7f8ee3d35d7 (patch)
tree08b2d6a8a84f6c23a8e36400f182af596afd6a30
parentcdaa9bb991afde9ea2b373fab1ec72928b0c0117 (diff)
downloadrpmdrake-6e3379ac7af9db3d40fd762bbb63d7f8ee3d35d7.tar
rpmdrake-6e3379ac7af9db3d40fd762bbb63d7f8ee3d35d7.tar.gz
rpmdrake-6e3379ac7af9db3d40fd762bbb63d7f8ee3d35d7.tar.bz2
rpmdrake-6e3379ac7af9db3d40fd762bbb63d7f8ee3d35d7.tar.xz
rpmdrake-6e3379ac7af9db3d40fd762bbb63d7f8ee3d35d7.zip
really reload the package list after installing some packages (#25910)
-rwxr-xr-xrpmdrake5
1 files changed, 4 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 0aebca6c..5c522df9 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -773,6 +773,7 @@ sub run_treeview_dialog {
}
@to_remove;
};
+ my $force_rebuild;
$options = {
is_a_package => sub {
my ($pkg) = @_;
@@ -800,8 +801,9 @@ sub run_treeview_dialog {
my ($add_node, $flat, $mode) = @_;
my $old_mode if 0;
$mode = $options->{rmodes}{$mode} || $mode;
- return if $old_mode eq $mode;
+ return if $old_mode eq $mode && !$force_rebuild;
$old_mode = $mode;
+ undef $force_rebuild;
my @elems;
my $wait; $wait = statusbar_msg(N("Please wait, listing packages...")) if $MODE ne 'update';
gtkflush();
@@ -1216,6 +1218,7 @@ Do you really want to install all the selected packages?"), yesno => 1)
or return;
}
if (!$callback_action->($urpm, $pkgs)) {
+ $force_rebuild = 1;
$pkgs_provider->({ skip_updating_mu => 1 }, $rmodes{$options->{tree_mode}});
$reset_search->();
$size_selected = 0;