texlive[47218] Master/texmf-dist/scripts/texlive/tlmgr.pl: tlmgr
commits+preining at tug.org
commits+preining at tug.org
Sun Apr 1 04:38:10 CEST 2018
Revision: 47218
http://tug.org/svn/texlive?view=revision&revision=47218
Author: preining
Date: 2018-04-01 04:38:10 +0200 (Sun, 01 Apr 2018)
Log Message:
-----------
tlmgr restore --json: return empty array instead of plain text
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 2018-04-01 02:23:41 UTC (rev 47217)
+++ trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl 2018-04-01 02:38:10 UTC (rev 47218)
@@ -1996,7 +1996,11 @@
}
}
} else {
- print "No backups available in $opts{'backupdir'}\n";
+ if ($opts{'json'}) {
+ print "[]\n";
+ } else {
+ print "No backups available in $opts{'backupdir'}\n";
+ }
}
return ($F_OK | $F_NOPOSTACTION);
}
More information about the tex-live-commits
mailing list