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 | aefca09a60080bb3269d9c6b1687b891fe004eea (patch) | |
tree | c84d3c5da31a7c91faed1039d3500272e0245023 | |
parent | 77137777a1935e9d8a8317977c70489a700d55f0 (diff) | |
download | drakx-backup-do-not-use-aefca09a60080bb3269d9c6b1687b891fe004eea.tar drakx-backup-do-not-use-aefca09a60080bb3269d9c6b1687b891fe004eea.tar.gz drakx-backup-do-not-use-aefca09a60080bb3269d9c6b1687b891fe004eea.tar.bz2 drakx-backup-do-not-use-aefca09a60080bb3269d9c6b1687b891fe004eea.tar.xz drakx-backup-do-not-use-aefca09a60080bb3269d9c6b1687b891fe004eea.zip |
(unselectAllPackages) move test out of if
so that next commit is more readable
-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 { |