Ignore:
Timestamp:
Aug 10, 2011, 12:31:01 AM (8 years ago)
Author:
dports@…
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/texlive-1.0.tcl

    r82097 r82181  
    424424            system "${prefix}/libexec/texlive-update-cnf fmtutil.cnf"
    425425            system "${prefix}/bin/updmap-sys"
    426             system "${prefix}/bin/fmtutil-sys --all"
     426            # format generation might fail if we are in the middle of
     427            # a major upgrade and have not yet updated all texlive ports.
     428            # Catch the error to prevent the upgrade from failing.
     429            catch {system "${prefix}/bin/fmtutil-sys --all"}
    427430        } else {
    428431            # Otherwise, only update the config files that are
     
    447450            # installed.
    448451            if {${texlive.languages} != ""} {
    449                 system "${prefix}/bin/fmtutil-sys --all"               
     452                catch {system "${prefix}/bin/fmtutil-sys --all"}
    450453            } elseif {${texlive.formats} != ""} {
    451454                foreach x ${texlive.formats} {
    452455                    set fmtname [lindex $x 1]
    453                     system "${prefix}/bin/fmtutil-sys --byfmt $fmtname"
     456                    catch {system "${prefix}/bin/fmtutil-sys --byfmt $fmtname"}
    454457                }
    455458            }
Note: See TracChangeset for help on using the changeset viewer.