diff options
author | Norbert Preining <preining@logic.at> | 2016-03-31 00:37:56 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2016-03-31 00:37:56 +0000 |
commit | e85c764560050fdd9a82a646ac9bf24488de7902 (patch) | |
tree | f8c8c9d08612e09fbdd3e942a60085bbe3155770 | |
parent | b169d22c9fe57a246495c848f6c5ca4deaaeae49 (diff) |
check allowed actions only in system mode (KenBrown per ml)
git-svn-id: svn://tug.org/texlive/trunk@40188 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/tlmgr.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl index ef3faaade7f..e55adf213bd 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -590,10 +590,10 @@ for the full story.\n"; # load it BEFORE starting downloads as we set persistent-downloads there! load_config_file(); - # verify that the selected action is allowed - if ($config{'allowed-actions'}) { + # in system mode verify that the selected action is allowed + if (!$opts{"usermode"} && $config{'allowed-actions'}) { if (!TeXLive::TLUtils::member($action, @{$config{'allowed-actions'}})) { - tlwarn("$prg: action not allowed: $action\n"); + tlwarn("$prg: action not allowed in system mode: $action\n"); exit ($F_ERROR); } } |