diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-23 05:18:13 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-23 05:18:13 +0000 |
commit | a289971b669abfbe1ca2d4d251c50a0f97ee5eab (patch) | |
tree | 37895ddcbc7f9d004366cfd6fdf012bd79c0815a | |
parent | e2b29b1c294b15c34c7b695ca2bf67c06d6722a5 (diff) | |
download | rpmdrake-a289971b669abfbe1ca2d4d251c50a0f97ee5eab.tar rpmdrake-a289971b669abfbe1ca2d4d251c50a0f97ee5eab.tar.gz rpmdrake-a289971b669abfbe1ca2d4d251c50a0f97ee5eab.tar.bz2 rpmdrake-a289971b669abfbe1ca2d4d251c50a0f97ee5eab.tar.xz rpmdrake-a289971b669abfbe1ca2d4d251c50a0f97ee5eab.zip |
(do_action__real) return whether we've removed/installed something
-rw-r--r-- | Rpmdrake/gui.pm | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |