summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index 7ceb35c08..f1f0774b5 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -333,12 +333,16 @@ sub chooseGroups {
sub chooseCD {
my ($o, $packages) = @_;
- my @mediums = pkgs::allMediums($packages);
+ my @mediums = grep { $_ > 1 } pkgs::allMediums($packages);
+
+ #- if no other medium available or a poor beginner.
+ #- note first CD is always selected and should not be unselected!
+ return if scalar(@mediums) == 0 || $::beginner;
$o->ask_many_from_list_ref('',
_("Choose other CD to install"),
- [ map { _("Cd-Rom labeled \"%s\"", pkgs::mediumDescr($packages, $_)) } grep { $_ > 1 } @mediums ],
- [ map { \$packages->[2]{$_}{selected} } grep { $_ } @mediums ] #- check for change!
+ [ map { _("Cd-Rom labeled \"%s\"", pkgs::mediumDescr($packages, $_)) } @mediums ],
+ [ map { \$packages->[2]{$_}{selected} } @mediums ] #- check for change!
) or goto &chooseCD unless $::beginner;
}