diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-08-23 09:28:22 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-08-23 09:28:22 +0000 |
commit | c3fc3bd300d4d4134a45b96343c7f33cc2c6967a (patch) | |
tree | 450246e9039993e4352250a441f5585c00b4890d | |
parent | 194b59849a254aaf90dd8f8c96f0b6be9bd29584 (diff) | |
download | rpmdrake-c3fc3bd300d4d4134a45b96343c7f33cc2c6967a.tar rpmdrake-c3fc3bd300d4d4134a45b96343c7f33cc2c6967a.tar.gz rpmdrake-c3fc3bd300d4d4134a45b96343c7f33cc2c6967a.tar.bz2 rpmdrake-c3fc3bd300d4d4134a45b96343c7f33cc2c6967a.tar.xz rpmdrake-c3fc3bd300d4d4134a45b96343c7f33cc2c6967a.zip |
(toggle_nodes) set proper state
-rwxr-xr-x | rpmdrake | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |