texlive[45525] Master/texmf-dist/scripts/texlive/tlmgr.pl: tlmgr info
commits+preining at tug.org
commits+preining at tug.org
Thu Oct 12 06:52:45 CEST 2017
Revision: 45525
http://tug.org/svn/texlive?view=revision&revision=45525
Author: preining
Date: 2017-10-12 06:52:44 +0200 (Thu, 12 Oct 2017)
Log Message:
-----------
tlmgr info --fields: allow depends as field
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-10-12 00:17:47 UTC (rev 45524)
+++ trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl 2017-10-12 04:52:44 UTC (rev 45525)
@@ -1409,7 +1409,7 @@
@datafields = split(',', $opts{'data'});
# check for correctness of data fields
for my $d (@datafields) {
- if ($d !~ m/name|category|localrev|remoterev|shortdesc|longdesc|size|installed|relocatable|cat-version|cat-date|cat-license/) {
+ if ($d !~ m/name|category|localrev|remoterev|shortdesc|longdesc|size|installed|relocatable|depends|cat-version|cat-date|cat-license/) {
tlwarn("unknown data field: $d\n");
return($F_ERROR);
}
@@ -3614,6 +3614,8 @@
push @out, ($is_installed ? $loctlp->revision : 0);
} elsif ($d eq "remoterev") {
push @out, ($is_available ? $remtlp->revision : 0);
+ } elsif ($d eq "depends") {
+ push @out, (join(":", $tlp->depends));
} elsif ($d eq "size") {
# tlp->*size is in 4k blocks!
my $srcsize = $tlp->srcsize * $TeXLive::TLConfig::BlockSize;
@@ -7624,10 +7626,11 @@
If the option C<--data> is given, its argument must be a comma separated
list of field names from: C<name>, C<category>, C<localrev>, C<remoterev>,
-C<shortdesc>, C<longdesc>, C<installed>, C<size>, C<relocatable>, C<cat-version>,
-C<cat-date>, or C<cat-licence>. In this case the requested packages'
-information is listed in CSV format one package per line, and the
-column information is given by the C<itemN>.
+C<shortdesc>, C<longdesc>, C<installed>, C<size>, C<relocatable>, C<depends>,
+C<cat-version>, C<cat-date>, or C<cat-licence>. In this case the requested
+packages' information is listed in CSV format one package per line, and the
+column information is given by the C<itemN>. The C<depends> column contains
+the name of all dependencies separated by C<:>.
=back
More information about the tex-live-commits
mailing list