summaryrefslogtreecommitdiffstats
path: root/perl-install/install/pkgs.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-11-16 17:13:56 +0000
committerThierry Vignaud <tv@mageia.org>2012-11-16 17:13:56 +0000
commit24050fea465c24a852693bd1dfdb3c31abf3e482 (patch)
tree303b628e35887458c8e5e698a01ed9afeb540e3d /perl-install/install/pkgs.pm
parent61e15785e6fa1d3f287af72fa5c3a498c9b113e1 (diff)
downloaddrakx-24050fea465c24a852693bd1dfdb3c31abf3e482.tar
drakx-24050fea465c24a852693bd1dfdb3c31abf3e482.tar.gz
drakx-24050fea465c24a852693bd1dfdb3c31abf3e482.tar.bz2
drakx-24050fea465c24a852693bd1dfdb3c31abf3e482.tar.xz
drakx-24050fea465c24a852693bd1dfdb3c31abf3e482.zip
(saveSelected) fix a crash when pressing "previous" after selecting package groups
Diffstat (limited to 'perl-install/install/pkgs.pm')
-rw-r--r--perl-install/install/pkgs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm
index ff6198ecd..8d00d1bb2 100644
--- a/perl-install/install/pkgs.pm
+++ b/perl-install/install/pkgs.pm
@@ -487,7 +487,7 @@ sub setSelectedFromCompssList {
sub saveSelected {
my ($packages) = @_;
my $state = delete $packages->{state};
- my @l = @{$packages->{depslist}};
+ my @l = @{$packages->{depslist} || []};
my @flags = map { ($_->flag_requested && 1) + ($_->flag_required && 2) + ($_->flag_upgrade && 4) } @l;
[ $packages, $state, \@l, \@flags ];
}