aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-23 05:18:13 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-23 05:18:13 +0000
commita289971b669abfbe1ca2d4d251c50a0f97ee5eab (patch)
tree37895ddcbc7f9d004366cfd6fdf012bd79c0815a
parente2b29b1c294b15c34c7b695ca2bf67c06d6722a5 (diff)
downloadrpmdrake-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.pm4
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 {