aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-03 16:25:31 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-03 16:25:31 +0000
commited865f792817c1e9835192ad78713646a9e49946 (patch)
tree3d8f4104acff78bdb435890b2ea5ab4b35ddee51
parentc7d9c0eacfd144a0576f2b3ed91ff862a9e6effd (diff)
downloadrpmdrake-ed865f792817c1e9835192ad78713646a9e49946.tar
rpmdrake-ed865f792817c1e9835192ad78713646a9e49946.tar.gz
rpmdrake-ed865f792817c1e9835192ad78713646a9e49946.tar.bz2
rpmdrake-ed865f792817c1e9835192ad78713646a9e49946.tar.xz
rpmdrake-ed865f792817c1e9835192ad78713646a9e49946.zip
(fast_toggle) enable to select a package listed in urpmi's skip.list (backport, #31548)
-rw-r--r--Rpmdrake/gui.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index b8640e37..d923b188 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -340,10 +340,16 @@ sub ask_browse_tree_given_widgets_for_rpmdrake {
my $fast_toggle = sub {
my ($iter) = @_;
gtkset_mousecursor_wait($w->{w}{rwindow}->window);
+ my $_cleaner = before_leaving { gtkset_mousecursor_normal($w->{w}{rwindow}->window) };
+ my $name = $w->{detail_list_model}->get($iter, $pkg_columns{text});
+ my $urpm_obj = $pkgs->{$name}{pkg};
+ if ($urpm_obj->flag_skip) {
+ interactive_msg(N("Warning"), N("The \"%s\" package is in urpmi skip list.\nDo you want to select it anyway?", $name), yesno => 1) or return '';
+ $urpm_obj->set_flag_skip(0);
+ }
toggle_nodes($w->{tree}->window, $w->{detail_list_model}, \&set_leaf_state, $w->{detail_list_model}->get($iter, $pkg_columns{state}),
$w->{detail_list_model}->get($iter, $pkg_columns{text}));
&$update_size;
- gtkset_mousecursor_normal($w->{w}{rwindow}->window);
};
$w->{detail_list}->get_selection->signal_connect(changed => sub {
my ($model, $iter) = $_[0]->get_selected;