aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-08-23 09:28:22 +0000
committerThierry Vignaud <tv@mandriva.org>2006-08-23 09:28:22 +0000
commitc3fc3bd300d4d4134a45b96343c7f33cc2c6967a (patch)
tree450246e9039993e4352250a441f5585c00b4890d
parent194b59849a254aaf90dd8f8c96f0b6be9bd29584 (diff)
downloadrpmdrake-c3fc3bd300d4d4134a45b96343c7f33cc2c6967a.tar
rpmdrake-c3fc3bd300d4d4134a45b96343c7f33cc2c6967a.tar.gz
rpmdrake-c3fc3bd300d4d4134a45b96343c7f33cc2c6967a.tar.bz2
rpmdrake-c3fc3bd300d4d4134a45b96343c7f33cc2c6967a.tar.xz
rpmdrake-c3fc3bd300d4d4134a45b96343c7f33cc2c6967a.zip
(toggle_nodes) set proper state
-rwxr-xr-xrpmdrake2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 6bc53f58..1703c960 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -943,7 +943,7 @@ or you already installed all of them."));
#- not upgradable (older than what currently installed)
exists $pkgs->{$_} or next;
$pkgs->{$_}{pkg} or $new_state = 0; #- can't be removed
- $set_state->($_, $new_state ? 'selected' : 'unselected');
+ $set_state->($_, $new_state ? ($old_state eq 'installed' ? 'to_remove' : 'to_install') : 'uninstalled', $detail_tree_model);
$pkgs->{$_}{selected} = $new_state;
$pkgs->{$_}{pkg}
and $size_selected += $pkgs->{$_}{pkg}->size * ($new_state ? 1 : -1);