From a289971b669abfbe1ca2d4d251c50a0f97ee5eab Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 23 Mar 2007 05:18:13 +0000 Subject: (do_action__real) return whether we've removed/installed something --- Rpmdrake/gui.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Rpmdrake') diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index dda0da89..930653fd 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -667,7 +667,8 @@ dangerous and should be considered with care. Do you really want to install all the selected packages?"), yesno => 1) or return; } - if (!$callback_action->($urpm, $pkgs)) { + my $res = $callback_action->($urpm, $pkgs); + if (!$res) { $force_rebuild = 1; pkgs_provider({ skip_updating_mu => 1 }, $options->{tree_mode}, if_($Rpmdrake::pkg::probe_only_for_updates, pure_updates => 1)); reset_search(); @@ -676,6 +677,7 @@ Do you really want to install all the selected packages?"), yesno => 1) $options->{rebuild_tree}->() if $options->{rebuild_tree}; gtktext_insert($o_info, '') if $o_info; } + $res; } sub do_action { -- cgit v1.2.1