summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2017-10-12 04:52:44 +0000
committerNorbert Preining <preining@logic.at>2017-10-12 04:52:44 +0000
commit8fa36ac3a44c9645b949dabd122622dc121b1359 (patch)
tree146c81bf143b6775f9a11547012ed9f3eec31065
parent754eee9fbc47d9dfcee710d3c327652b97f8cc00 (diff)
tlmgr info --fields: allow depends as field
git-svn-id: svn://tug.org/texlive/trunk@45525 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl13
1 files changed, 8 insertions, 5 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index 620e8f3a29b..1894da1554f 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -1409,7 +1409,7 @@ sub action_info {
@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 @@ sub show_one_package_csv {
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 @@ locally installed packages, collections, or schemes are listed.
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