diff options
Diffstat (limited to 'Master')
-rwxr-xr-x | Master/texmf/scripts/texlive/tlmgr.pl | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index 9c10b06b4e5..7f16e9dfb13 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -174,6 +174,8 @@ sub main { "keyword" => 1, "characterization" => 1, "functionality" => 1 }, + "dump-tlpdb" => { "local" => 1, + "remote" => 1 }, "uninstall" => { "force" => 1 }, "update" => { "no-depends" => 1, "no-depends-at-all" => 1, @@ -506,6 +508,9 @@ sub execute_action { } elsif ($action =~ m/^conf$/i) { action_conf(); finish(0); + } elsif ($action =~ m/^dump-tlpdb$/i) { + action_dumptlpdb(); + finish(0); } elsif ($action =~ m/^show$/i) { action_show(); finish(0); @@ -1029,7 +1034,21 @@ sub action_path { return; } - +# DUMP TLPDB +# +sub action_dumptlpdb { + init_local_db(); + if ($opts{"local"}) { + $localtlpdb->writeout; + return; + } + if ($opts{"remote"}) { + init_tlmedia(); + $remotetlpdb->writeout; + } + return; +} + # SHOW # sub action_show { @@ -5725,6 +5744,28 @@ L</"TAXONOMIES"> below for details. =back +=head2 dump-tlpdb [I<options>] + +Dumps local or remote TLPDB as is to stdout. + +Options: + +=over 4 + +=item B<--local> + +Dumps the local tlpdb. + +=item B<--remote> + +Dumps the remote tlpdb. + +=back + +If both B<--local> and B<--remote> is given, only the local tlpdb is dumped +out. If none is given then nothing is dumped. + + =head2 list [--only-installed] [collections|schemes|I<pkg>...] With no argument, lists all packages available at the package |