diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-04-17 21:15:26 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-04-17 21:15:26 +0000 |
commit | 5071361f08a0a25f517296a27d6423f4d2a18172 (patch) | |
tree | d061e8901b47c7221edf873b88d79184ab48ccaf /perl-install/install | |
parent | e6b8ab46680c101c6fccfc2677a5f60aa2a77066 (diff) | |
download | drakx-5071361f08a0a25f517296a27d6423f4d2a18172.tar drakx-5071361f08a0a25f517296a27d6423f4d2a18172.tar.gz drakx-5071361f08a0a25f517296a27d6423f4d2a18172.tar.bz2 drakx-5071361f08a0a25f517296a27d6423f4d2a18172.tar.xz drakx-5071361f08a0a25f517296a27d6423f4d2a18172.zip |
(_resolve_requested_and_check) make it slighty more readable
Diffstat (limited to 'perl-install/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 9420f0cea..fa24840f2 100644 --- a/perl-install/install/pkgs.pm +++ b/perl-install/install/pkgs.pm @@ -279,7 +279,8 @@ sub _resolve_requested_and_check { my @l = $packages->resolve_requested($packages->{rpmdb}, $state, $requested, callback_choices => \&packageCallbackChoices, no_suggests => $::o->{no_suggests}); - @suggested_package_ids = uniq(@suggested_package_ids, map { $packages->{depslist}[$_]->id } grep { $state->{selected}{$_}{suggested} } keys $state->{selected}); + my @new_ids = map { $packages->{depslist}[$_]->id } grep { $state->{selected}{$_}{suggested} } keys $state->{selected}; + @suggested_package_ids = uniq(@suggested_package_ids, @new_ids); my $error; if (find { !exists $state->{selected}{$_} } keys %$requested) { |