texlive[44452] Master/texmf-dist/scripts/texlive/tlmgr.pl: update -n
commits+karl at tug.org
commits+karl at tug.org
Mon Jun 5 01:45:40 CEST 2017
Revision: 44452
http://tug.org/svn/texlive?view=revision&revision=44452
Author: karl
Date: 2017-06-05 01:45:39 +0200 (Mon, 05 Jun 2017)
Log Message:
-----------
update -n same as update --list -n
Modified Paths:
--------------
trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl
Modified: trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl 2017-06-04 23:45:05 UTC (rev 44451)
+++ trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl 2017-06-04 23:45:39 UTC (rev 44452)
@@ -2559,8 +2559,12 @@
# if --list is given: nothing
# other options just change the behavior
if (!($opts{"list"} || @ARGV || $opts{"all"} || $opts{"self"})) {
- tlwarn("$prg update: specify --list, --all, --self, or a list of package names.\n");
- return ($F_ERROR);
+ if ($opts{"dry-run"}) {
+ $opts{"list"} = 1; # update -n same as update -n --list
+ } else {
+ tlwarn("$prg update: specify --list, --all, --self, or a list of package names.\n");
+ return ($F_ERROR);
+ }
}
init_tlmedia_or_die();
More information about the tex-live-commits
mailing list