texlive[60557] Master/texmf-dist/scripts/texlive/tlmgr.pl: tlmgr

commits+preining at tug.org commits+preining at tug.org
Mon Sep 20 12:46:44 CEST 2021


Revision: 60557
          http://tug.org/svn/texlive?view=revision&revision=60557
Author:   preining
Date:     2021-09-20 12:46:43 +0200 (Mon, 20 Sep 2021)
Log Message:
-----------
tlmgr info: allow colons as separators for --data argument

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	2021-09-19 23:48:47 UTC (rev 60556)
+++ trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl	2021-09-20 10:46:43 UTC (rev 60557)
@@ -1658,7 +1658,15 @@
   } elsif ($opts{'data'}) {
     # output format is changed to csv with " as quotes
     # we need to determine the fields
-    @datafields = split(',', $opts{'data'});
+    #
+    # Try to work around stupidiy in Windows where "," is interpreted in
+    # powershell (and cmd?)
+    # We optionally split at ":"
+    if ($opts{'data'} =~ m/:/) {
+      @datafields = split(':', $opts{'data'});
+    } else {
+      @datafields = split(',', $opts{'data'});
+    }
     # check for correctness of data fields and whether remote is necessary
     my $load_remote = 0;
     for my $d (@datafields) {
@@ -8480,8 +8488,8 @@
 
 =item B<--data C<item1,item2,...>>
 
-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>,
+If the option C<--data> is given, its argument must be a comma or colon 
+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<depends>, C<cat-version>, C<cat-date>, C<cat-license>,
 plus various C<cat-contact-*> fields (see below).



More information about the tex-live-commits mailing list.