summaryrefslogtreecommitdiff
path: root/Master/tlpkg/installer/install-menu-text.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/installer/install-menu-text.pl')
-rwxr-xr-xMaster/tlpkg/installer/install-menu-text.pl12
1 files changed, 8 insertions, 4 deletions
diff --git a/Master/tlpkg/installer/install-menu-text.pl b/Master/tlpkg/installer/install-menu-text.pl
index 7bbbf5175c0..c37d392d950 100755
--- a/Master/tlpkg/installer/install-menu-text.pl
+++ b/Master/tlpkg/installer/install-menu-text.pl
@@ -13,6 +13,7 @@ use vars qw(@::end_install_hook $::opt_no_cls);
our %vars;
our $tlpdb;
+our @media_available;
our $previoustlpdb;
our @collections_std;
our @collections_lang;
@@ -864,6 +865,7 @@ sub do_install {
}
sub dvd_hd_toggle {
+ return if !member('DVD', @media_available);
if ($vars{'from_dvd'}) { # set up for hd install:
$vars{'from_dvd'} = 0;
$vars{'TEXDIR'} = $vars{'TEXDIRW'};
@@ -1006,10 +1008,12 @@ EOF
}
}
- if ($vars{'from_dvd'}) {
- print "\n <V> set up for installing to hard disk\n";
- } else {
- print "\n <V> set up for running from DVD\n";
+ if (member('DVD', @media_available)) {
+ if ($vars{'from_dvd'}) {
+ print "\n <V> set up for installing to hard disk\n";
+ } else {
+ print "\n <V> set up for running from DVD\n";
+ }
}
other_options qw(I H Q);