diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-04-17 21:10:13 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-04-17 21:10:13 +0000 |
commit | c354a8c3b5000d35ec7adc680f14d45e3cb67a1b (patch) | |
tree | c84d3c5da31a7c91faed1039d3500272e0245023 /perl-install | |
parent | 5d5d9e489d1cb411e13a18f1005618e0e26cc3a4 (diff) | |
download | drakx-c354a8c3b5000d35ec7adc680f14d45e3cb67a1b.tar drakx-c354a8c3b5000d35ec7adc680f14d45e3cb67a1b.tar.gz drakx-c354a8c3b5000d35ec7adc680f14d45e3cb67a1b.tar.bz2 drakx-c354a8c3b5000d35ec7adc680f14d45e3cb67a1b.tar.xz drakx-c354a8c3b5000d35ec7adc680f14d45e3cb67a1b.zip |
(unselectAllPackages) move test out of if
so that next commit is more readable
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/install/pkgs.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm index 2e64b778c..a63622c90 100644 --- a/perl-install/install/pkgs.pm +++ b/perl-install/install/pkgs.pm @@ -329,7 +329,8 @@ sub unselectAllPackages { my %keep_selected; log::l("unselecting all packages..."); foreach (@{$packages->{depslist}}) { - if ($_->flag_base || $_->flag_installed && $_->flag_selected) { + my $to_select = $_->flag_base || $_->flag_installed && $_->flag_selected; + if ($to_select) { #- keep track of packages that should be kept selected. $keep_selected{$_->id} = $_; } else { |