texlive[47436] Build/source/texk: sync

commits+karl at tug.org commits+karl at tug.org
Wed Apr 11 00:21:31 CEST 2018


Revision: 47436
          http://tug.org/svn/texlive?view=revision&revision=47436
Author:   karl
Date:     2018-04-11 00:21:30 +0200 (Wed, 11 Apr 2018)
Log Message:
-----------
sync

Modified Paths:
--------------
    trunk/Build/source/texk/tests/TeXLive/TLUtils.pm
    trunk/Build/source/texk/texlive/w32_wrapper/runscript.tlu

Modified: trunk/Build/source/texk/tests/TeXLive/TLUtils.pm
===================================================================
--- trunk/Build/source/texk/tests/TeXLive/TLUtils.pm	2018-04-10 22:19:32 UTC (rev 47435)
+++ trunk/Build/source/texk/tests/TeXLive/TLUtils.pm	2018-04-10 22:21:30 UTC (rev 47436)
@@ -1,4 +1,3 @@
-# $Id: TLUtils.pm 46834 2018-03-05 15:34:41Z preining $
 # TeXLive::TLUtils.pm - the inevitable utilities for TeX Live.
 # Copyright 2007-2018 Norbert Preining, Reinhard Kotucha
 # This file is licensed under the GNU General Public License version 2
@@ -6,7 +5,7 @@
 
 package TeXLive::TLUtils;
 
-my $svnrev = '$Revision: 46834 $';
+my $svnrev = '$Revision: 47220 $';
 my $_modulerevision = ($svnrev =~ m/: ([0-9]+) /) ? $1 : "unknown";
 sub module_revision { return $_modulerevision; }
 
@@ -308,20 +307,17 @@
   }
   
   if ($OS eq "darwin") {
-    # We have a variety of Mac binary sets.
-    # 10.10/Yosemite and newer:
+    # We have two versions of Mac binary sets.
+    # 10.10/Yosemite and newer (Yosemite specially left over):
     #   -> x86_64-darwin [MacTeX]
-    # 10.6/Snow Leopard through 10.9/Mavericks:
+    # 10.6/Snow Leopard through 10.10/Yosemite:
     #   -> x86_64-darwinlegacy if 64-bit
-    #   -> i386-darwin         otherwise
-    # 10.5/Leopard:
-    #   -> i386-darwin    if x86
-    #   -> powerpc-darwin if ppc
     #
-    # (BTW, uname -r numbers are larger by 4 than the minor version.
+    # (BTW, uname -r numbers are larger by 4 than the Mac minor version.
     # We don't use uname numbers here.)
     #
-    my $mactex_darwin = 10;  # the minor 10; this will change in the future.
+    # this changes each year, per above:
+    my $mactex_darwin = 10;  # lowest minor rev supported by x86_64-darwin.
     #
     # Most robust approach is apparently to check sw_vers (os version,
     # returns "10.x" values), and sysctl (processor hardware).
@@ -397,8 +393,8 @@
     'universal-darwin' => 'MacOSX universal binaries',
     'win32'            => 'Windows',
     'x86_64-cygwin'    => 'Cygwin on x86_64',
-    'x86_64-darwin'    => 'MacOSX current on x86_64',
-    'x86_64-darwinlegacy' => 'MacOSX legacy (10.6-10.9) on x86_64',
+    'x86_64-darwin'       => 'MacOSX current (10.10-) on x86_64',
+    'x86_64-darwinlegacy' => 'MacOSX legacy (10.6-10.10) on x86_64',
     'x86_64-linux'     => 'GNU/Linux on x86_64',
     'x86_64-linuxmusl' => 'GNU/Linux on x86_64 with musl',
     'x86_64-solaris'   => 'Solaris on x86_64',
@@ -2080,7 +2076,7 @@
     return;
   }
   # only run checksum tests if we can actually compute the checksum
-  if ($checksum && $::checksum_method) {
+  if ($checksum && ($checksum ne "-1") && $::checksum_method) {
     my $tlchecksum = TeXLive::TLCrypto::tlchecksum($xzfile);
     if ($tlchecksum ne $checksum) {
       tlwarn("TLUtils::check_file: removing $xzfile, checksums differ:\n");
@@ -2093,7 +2089,7 @@
       return;
     }
   }
-  if ($checksize) {
+  if ($checksize && ($checksize ne "-1")) {
     my $filesize = (stat $xzfile)[7];
     if ($filesize != $checksize) {
       tlwarn("TLUtils::check_file: removing $xzfile, sizes differ:\n");
@@ -2119,6 +2115,9 @@
 Returns a pair of values: in case of error return 0 and an additional
 explanation, in case of success return 1 and the name of the package.
 
+If C<checksum> or C<size> is C<-1>, no warnings about missing checksum/size
+is printed. This is used during restore and unwinding of failed updates.
+
 =cut
 
 sub unpack {

Modified: trunk/Build/source/texk/texlive/w32_wrapper/runscript.tlu
===================================================================
--- trunk/Build/source/texk/texlive/w32_wrapper/runscript.tlu	2018-04-10 22:19:32 UTC (rev 47435)
+++ trunk/Build/source/texk/texlive/w32_wrapper/runscript.tlu	2018-04-10 22:21:30 UTC (rev 47436)
@@ -1,7 +1,7 @@
 
 
 local svnrevision = string.match("$Revision: 47389 $", "%d+") or "0"
-local svndate     = string.match("$Date: 2018-04-09 08:11:53 +0900 (月, 09 4 2018) $", "[-%d]+") or "2009-12-04"
+local svndate     = string.match("$Date: 2018-04-09 01:11:53 +0200 (Mon, 09 Apr 2018) $", "[-%d]+") or "2009-12-04"
 local bannerstr   = "runscript wrapper utility (rev. " ..
                     svnrevision .. ", " .. svndate .. ")\n" .. 
                     "usage:   runscript script-name [arguments]\n" ..



More information about the tex-live-commits mailing list