diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-09-27 17:18:52 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-09-27 17:18:52 +0000 |
commit | 0aaa6cc55802b0ccd0d923bdc862851fdcd41b65 (patch) | |
tree | 66f628e258eebb67a1c51271587f4d8ce8d51be2 /Rpmdrake | |
parent | 1f9167357fc2ac2ec04a54e80851cf441d8255c9 (diff) | |
download | rpmdrake-0aaa6cc55802b0ccd0d923bdc862851fdcd41b65.tar rpmdrake-0aaa6cc55802b0ccd0d923bdc862851fdcd41b65.tar.gz rpmdrake-0aaa6cc55802b0ccd0d923bdc862851fdcd41b65.tar.bz2 rpmdrake-0aaa6cc55802b0ccd0d923bdc862851fdcd41b65.tar.xz rpmdrake-0aaa6cc55802b0ccd0d923bdc862851fdcd41b65.zip |
do not store {selected} in memory if not needed
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/gui.pm | 2 | ||||
-rw-r--r-- | Rpmdrake/pkg.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 9dcb3bf4..34c65b1f 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -875,7 +875,7 @@ sub toggle_nodes { #- not upgradable (older than what currently installed) exists $pkgs->{$_} or next; if (!$pkgs->{$_}{pkg}) { #- can't be removed # FIXME; what about next packages in the loop? - $pkgs->{$_}{selected} = 0; + undef $pkgs->{$_}{selected}; log::explanations("can't be removed: $_"); } else { $pkgs->{$_}{selected} = $new_state; diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index ac136116..3a474b65 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -353,7 +353,7 @@ sub get_installed_packages { my $fullname = urpm_name($pkg); return if $fullname =~ /@/; $all_pkgs->{$fullname} = { - selected => 0, pkg => $pkg, urpm_name => $fullname, + pkg => $pkg, urpm_name => $fullname, } if !($all_pkgs->{$fullname} && $all_pkgs->{$fullname}{description}); if (my $name = $base{$fullname}) { $all_pkgs->{$fullname}{base} = \$name; |