summaryrefslogtreecommitdiffstats
path: root/perl-install/install/pkgs.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-04-17 21:10:13 +0000
committerThierry Vignaud <tv@mageia.org>2012-04-17 21:10:13 +0000
commitaefca09a60080bb3269d9c6b1687b891fe004eea (patch)
treec84d3c5da31a7c91faed1039d3500272e0245023 /perl-install/install/pkgs.pm
parent77137777a1935e9d8a8317977c70489a700d55f0 (diff)
downloaddrakx-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
Diffstat (limited to 'perl-install/install/pkgs.pm')
-rw-r--r--perl-install/install/pkgs.pm3
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 {