aboutsummaryrefslogtreecommitdiffstats
path: root/MageiaUpdate
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-09-27 17:18:52 +0000
committerThierry Vignaud <tv@mageia.org>2012-09-27 17:18:52 +0000
commit0aaa6cc55802b0ccd0d923bdc862851fdcd41b65 (patch)
tree66f628e258eebb67a1c51271587f4d8ce8d51be2 /MageiaUpdate
parent1f9167357fc2ac2ec04a54e80851cf441d8255c9 (diff)
downloadrpmdrake-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 'MageiaUpdate')
-rwxr-xr-xMageiaUpdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/MageiaUpdate b/MageiaUpdate
index 5358a7c4..dea9090b 100755
--- a/MageiaUpdate
+++ b/MageiaUpdate
@@ -77,7 +77,7 @@ sub refresh_packages_list {
# don't select packages in skip list:
if (!$initialized) {
- $pkgs->{$_}{selected} = 0 foreach @requested;
+ undef $pkgs->{$_}{selected} foreach @requested;
my @selectable = grep { !$pkgs->{$_}{pkg}->flag_skip } @requested;
toggle($list, @selectable) if @selectable;
$initialized = 1;