texlive[45618] Master/tlpkg: adjust tl-update-tlpdb to new location

commits+preining at tug.org commits+preining at tug.org
Fri Oct 27 06:42:58 CEST 2017


Revision: 45618
          http://tug.org/svn/texlive?view=revision&revision=45618
Author:   preining
Date:     2017-10-27 06:42:58 +0200 (Fri, 27 Oct 2017)
Log Message:
-----------
adjust tl-update-tlpdb to new location of frozen, update release docs

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tl-update-tlpdb
    trunk/Master/tlpkg/doc/releng.txt

Modified: trunk/Master/tlpkg/bin/tl-update-tlpdb
===================================================================
--- trunk/Master/tlpkg/bin/tl-update-tlpdb	2017-10-27 04:21:47 UTC (rev 45617)
+++ trunk/Master/tlpkg/bin/tl-update-tlpdb	2017-10-27 04:42:58 UTC (rev 45618)
@@ -40,7 +40,6 @@
 my $opt_save_anyway = 0;
 my $opt_tlpsrc_from_cmdline = 0;
 my $opt_w32warning;
-my $opt_tlpdb_options_from_tlpsrc = 0;
 my $opt_keep_revisions = 0;
 
 TeXLive::TLUtils::process_logging_options();
@@ -60,7 +59,6 @@
     "save-anyway!"               => \$opt_save_anyway,
     "tlpsrc-from-cmdline"        => \$opt_tlpsrc_from_cmdline,
     "with-w32-pattern-warning"   => \$opt_w32warning,
-    "tlpdb-options-from-tlpsrc"  => \$opt_tlpdb_options_from_tlpsrc,
     "help|?" => \$help) or pod2usage(1);
 pod2usage(-exitstatus => 0, -verbose => 2) if $help;
 
@@ -391,18 +389,32 @@
       $found_texlive_installation = 1;
     }
     if ($tlp->name eq "00texlive.config") {
-      # in original TL we set the options in TLConfig, but local repositories
-      # might want to set them in the .tlpsrc file, so give them the option
-      # to do so
-      if (!$opt_tlpdb_options_from_tlpsrc) {
-        my @bar = $tlp->depends;
-        for my $k (sort keys %TeXLive::TLConfig::TLPDBConfigs) {
-          push @bar, "$k/" . $TeXLive::TLConfig::TLPDBConfigs{$k};
+      # defaults for these options are from %TeXLive::TLConfig::TLPDBConfigs
+      # but can be overriden by putting them into this source package
+      my %cfgs;
+      # first read the default settings
+      for my $k (keys %TeXLive::TLConfig::TLPDBConfigs) {
+        $cfgs{$k} = $TeXLive::TLConfig::TLPDBConfigs{$k};
+      }
+      # next parse the ones set in the tlpsrc
+      for my $dep ($tlp->depends) {
+        my ($k,$v) = split('/',$dep,2);
+        if (defined($k)) {
+          if (defined($cfgs{$k})) {
+            # override setting
+            $cfgs{$k} = $v;
+          } else {
+            die("Unknown key in 00texlive.config.tlpsrc: $dep");
+          }
         }
-        # add the latest revision
-        push @bar, "revision/".$tltree->revision;
-        $tlp->depends (@bar);
       }
+      my @bar;
+      for my $k (sort keys %cfgs) {
+        push @bar, "$k/" . $cfgs{$k};
+      }
+      # add the latest revision
+      push @bar, "revision/".$tltree->revision;
+      $tlp->depends (@bar);
     }
     $tldb->add_tlpobj ($tlp);
   }
@@ -518,13 +530,6 @@
 where the revision numbers will be adjusted afterwards by an external
 program.
 
-=item B<--tlpdb-options-from-tlpsrc>
-
-By default, the tlpdb specific settings in C<00texlive.config> are taken
-from the C<%TeXLive::TLConfig::TLPDBConfigs>.  Alternative repositories
-might set these values directly in the tlpsrc file; using this option
-omits adding anything to the configs set in the tlpsrc file.
-
 =item B<--tlpsrc-from-cmdline>
 
 By default, C<tl-update-tlpdb> recreates the tlpdb from all the tlpsrc

Modified: trunk/Master/tlpkg/doc/releng.txt
===================================================================
--- trunk/Master/tlpkg/doc/releng.txt	2017-10-27 04:21:47 UTC (rev 45617)
+++ trunk/Master/tlpkg/doc/releng.txt	2017-10-27 04:42:58 UTC (rev 45618)
@@ -13,7 +13,7 @@
  tlpkg/dev/tlnet-disabled-packages.txt
 
 On the day of the last tlnet update,
- Set opt_frozen in 00texlive.installation.tlpsrc.
+ Set frozen/1 in 00texlive.config.tlpsrc.
  Freeze should happen at that night's rebuild.
 
 Check if pretest mirrors need renewing, talk to mirror admins if so:
@@ -23,7 +23,7 @@
 

 Then, the next day, start building tlpretest:
 
-0. Reset opt_frozen to 0 in 00texlive.installation.tlpsrc.
+0. Reset frozen to 0 in 00texlive.config.tlpsrc.
 
 1a. Preserve final tlnet of current release:
 cd /home/ftp/texlive/tlnet



More information about the tex-live-commits mailing list