diff options
author | Norbert Preining <preining@logic.at> | 2022-06-21 00:09:29 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2022-06-21 00:09:29 +0000 |
commit | 02216f1360b96d27ae0cffb8f405d528dc29d3b5 (patch) | |
tree | b48731f63862b58248c55fc4c5b1a804055dbb87 /Master/install-tl | |
parent | d8b3f812f38ca71de319d4c94e3503f965a06bd0 (diff) |
install-tl: allow installation from live system with partial scheme support
git-svn-id: svn://tug.org/texlive/trunk@63676 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/install-tl')
-rwxr-xr-x | Master/install-tl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Master/install-tl b/Master/install-tl index 2b5c9e04f86..1e8be481b73 100755 --- a/Master/install-tl +++ b/Master/install-tl @@ -2021,12 +2021,20 @@ END_EXPLICIT_MIRROR $selscheme = $default_scheme; } if (!defined($tlpdb->get_package($selscheme))) { + # let us try scheme-minimal, and if also that is not available, scheme-infra + # which is required to be installed if (!defined($tlpdb->get_package("scheme-minimal"))) { - die("Aborting, cannot find either $selscheme or scheme-minimal"); + if (!defined($tlpdb->get_package("scheme-infra"))) { + die("Aborting, cannot find either $selscheme or scheme-minimal or scheme-infra"); + } + $default_scheme = "scheme-infra"; + } else { + $default_scheme = "scheme-minimal"; } - $default_scheme = "scheme-minimal"; tlwarn("$0: No $selscheme, switching to $default_scheme.\n"); $vars{'selected_scheme'} = $default_scheme; + } else { + $vars{'selected_scheme'} = $selscheme; } # make sure that we update %vars for collection_* if only selected_scheme # is there, but no collection information |