From c354a8c3b5000d35ec7adc680f14d45e3cb67a1b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 17 Apr 2012 21:10:13 +0000 Subject: (unselectAllPackages) move test out of if so that next commit is more readable --- perl-install/install/pkgs.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/install') 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 { -- cgit v1.2.1