diff options
author | Karl Berry <karl@freefriends.org> | 2021-05-03 17:37:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-05-03 17:37:44 +0000 |
commit | 4a3ba7b4fcfe429afbc6f7e14286edd2d1d99dc1 (patch) | |
tree | 844f711a81787377cb0248686679fe5b403175bc | |
parent | d8941362c94d866eb8c1e4a00923228f0196b3de (diff) |
(uninstall_texlive): don't let --dry-run be
specified with remove --all, since we haven't
implemented that. Oops.
git-svn-id: svn://tug.org/texlive/trunk@59064 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/tlmgr.pl | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl index 4e51181f658..a1dc7ff85ba 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -5249,13 +5249,18 @@ sub uninstall_texlive { return if !check_on_writable(); init_local_db(0); + if (defined($opts{"dry-run"})) { + # TODO: we should implement --dry-run for remove --all. + print "Sorry, no --dry-run with remove --all; goodbye.\n"; + return ($F_OK | $F_NOPOSTACTION); + } my $force = defined($opts{"force"}) ? $opts{"force"} : 0; if (!$force) { print("If you answer yes here the whole TeX Live installation here,\n", "under ", $localtlpdb->root, ", will be removed!\n"); print "Remove TeX Live (y/N): "; my $yesno = <STDIN>; - if ($yesno !~ m/^y(es)?$/i) { + if (!defined($yesno) || $yesno !~ m/^y(es)?$/i) { print "Ok, cancelling the removal!\n"; return ($F_OK | $F_NOPOSTACTION); } @@ -8870,9 +8875,10 @@ written to the terminal. =back -This action does not automatically remove symlinks to executables from -system directories; you need to run C<tlmgr path remove> (L</path>) -yourself if you are using this feature and want stale symlinks removed. +Except with C<--all>, this C<remove> action does not automatically +remove symlinks to executables from system directories; you need to run +C<tlmgr path remove> (L</path>) yourself if you remove an individual +package with a symlink in a system directory. =head2 repository |