[82181] trunk/dports/_resources/port1.0/group/texlive-1.0.tcl

dports at macports.org dports at macports.org
Tue Aug 9 17:31:01 PDT 2011


Revision: 82181
          http://trac.macports.org/changeset/82181
Author:   dports at macports.org
Date:     2011-08-09 17:31:01 -0700 (Tue, 09 Aug 2011)
Log Message:
-----------
texlive portgroup: catch fmtutil errors in post-activate to prevent
the rest of the upgrade from failing. Transient errors in format
generation are expected during an upgrade before all texlive ports are
updated to the latest version.

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/texlive-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/texlive-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/texlive-1.0.tcl	2011-08-10 00:24:45 UTC (rev 82180)
+++ trunk/dports/_resources/port1.0/group/texlive-1.0.tcl	2011-08-10 00:31:01 UTC (rev 82181)
@@ -423,7 +423,10 @@
             system "${prefix}/libexec/texlive-update-cnf updmap.cfg"
             system "${prefix}/libexec/texlive-update-cnf fmtutil.cnf"
             system "${prefix}/bin/updmap-sys"
-            system "${prefix}/bin/fmtutil-sys --all"
+            # format generation might fail if we are in the middle of
+            # a major upgrade and have not yet updated all texlive ports.
+            # Catch the error to prevent the upgrade from failing.
+            catch {system "${prefix}/bin/fmtutil-sys --all"}
         } else {
             # Otherwise, only update the config files that are
             # actually affected, and only generate the needed
@@ -446,11 +449,11 @@
             # formats. Otherwise, just generate the formats we just
             # installed.
             if {${texlive.languages} != ""} {
-                system "${prefix}/bin/fmtutil-sys --all"                
+                catch {system "${prefix}/bin/fmtutil-sys --all"}
             } elseif {${texlive.formats} != ""} {
                 foreach x ${texlive.formats} {
                     set fmtname [lindex $x 1]
-                    system "${prefix}/bin/fmtutil-sys --byfmt $fmtname"
+                    catch {system "${prefix}/bin/fmtutil-sys --byfmt $fmtname"}
                 }
             }
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110809/aa49e38c/attachment.html>


More information about the macports-changes mailing list