From 8fa36ac3a44c9645b949dabd122622dc121b1359 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 12 Oct 2017 04:52:44 +0000 Subject: tlmgr info --fields: allow depends as field git-svn-id: svn://tug.org/texlive/trunk@45525 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/tlmgr.pl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Master/texmf-dist') 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, C, C, C, -C, C, C, C, C, C, -C, or C. 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. +C, C, C, C, C, C, +C, C, or C. 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. The C column contains +the name of all dependencies separated by C<:>. =back -- cgit v1.2.3