summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-03-07 15:54:46 +0000
committerFrancois Pons <fpons@mandriva.com>2002-03-07 15:54:46 +0000
commit29a7234c5bdf582d65e13a4de654eb82c0e0a2ff (patch)
tree2b935a95094d005356bf71fca2713b48beb924f6 /perl-install
parent4a79f5759a785a247911f81b82875fefe538d142 (diff)
downloaddrakx-29a7234c5bdf582d65e13a4de654eb82c0e0a2ff.tar
drakx-29a7234c5bdf582d65e13a4de654eb82c0e0a2ff.tar.gz
drakx-29a7234c5bdf582d65e13a4de654eb82c0e0a2ff.tar.bz2
drakx-29a7234c5bdf582d65e13a4de654eb82c0e0a2ff.tar.xz
drakx-29a7234c5bdf582d65e13a4de654eb82c0e0a2ff.zip
fixed package tree with a given medium.
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install_steps_interactive.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index 27e4a5e0b..1152ad772 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -554,11 +554,9 @@ sub choosePackagesTree {
$o->ask_many_from_list('', _("Choose the packages you want to install"),
{
- list => [
- map { pkgs::packageByName($packages, $_) }
- $limit_to_medium ?
- (grep { pkgs::packageMedium($packages, $_) == $limit_to_medium } keys %{$packages->{names}}) :
- (keys %{$packages->{names}}) ],
+ list => [ grep { !$limit_to_medium || pkgs::packageMedium($packages, $_) == $limit_to_medium }
+ map { pkgs::packageByName($packages, $_) }
+ keys %{$packages->{names}} ],
value => \&pkgs::packageFlagSelected,
label => \&pkgs::packageName,
sort => 1,