texlive[49005] Master/install-tl: (run_postinst_cmd): let's try

commits+karl at tug.org commits+karl at tug.org
Sat Oct 27 23:55:41 CEST 2018


Revision: 49005
          http://tug.org/svn/texlive?view=revision&revision=49005
Author:   karl
Date:     2018-10-27 23:55:40 +0200 (Sat, 27 Oct 2018)
Log Message:
-----------
(run_postinst_cmd): let's try reporting failed
postinst command.

Modified Paths:
--------------
    trunk/Master/install-tl

Modified: trunk/Master/install-tl
===================================================================
--- trunk/Master/install-tl	2018-10-27 21:39:31 UTC (rev 49004)
+++ trunk/Master/install-tl	2018-10-27 21:55:40 UTC (rev 49005)
@@ -965,13 +965,14 @@
   
   info ("running $cmd ...");
   my ($out,$ret) = TeXLive::TLUtils::run_cmd ("$cmd 2>&1");
-  info ("done\n");
-  log ($out);
-
-  if ($ret != 0) {
-    tlwarn ("$0: $cmd failed: $!\n");
+  if ($ret == 0) {
+    info ("done\n");
+  } else {
+    info ("failed\n");
+    tlwarn ("$0: $cmd failed (status $ret): $!\n");
     $ret = 1; # be sure we don't overflow the sum on anything crazy
   }
+  log ($out);
   
   return $ret;
 } # run_postinst_cmd



More information about the tex-live-commits mailing list