Hello community,

here is the log from the commit of package texlive-filesystem for 
openSUSE:Factory checked in at 2014-02-15 17:21:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/texlive-filesystem (Old)
 and      /work/SRC/openSUSE:Factory/.texlive-filesystem.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "texlive-filesystem"

Changes:
--------
--- /work/SRC/openSUSE:Factory/texlive-filesystem/texlive-filesystem.changes    
2013-09-12 14:14:54.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.texlive-filesystem.new/texlive-filesystem.changes   
    2014-02-15 17:21:57.000000000 +0100
@@ -1,0 +2,6 @@
+Mon Feb 10 10:03:46 UTC 2014 - wer...@suse.de
+
+- Avoid that missing formats for a hyphen file will cause high
+  load at installation 
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ texlive-filesystem.spec ++++++
--- /var/tmp/diff_new_pack.gGUzZa/_old  2014-02-15 17:21:59.000000000 +0100
+++ /var/tmp/diff_new_pack.gGUzZa/_new  2014-02-15 17:21:59.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package texlive-filesystem
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed




++++++ update.texlive ++++++
--- /var/tmp/diff_new_pack.gGUzZa/_old  2014-02-15 17:21:59.000000000 +0100
+++ /var/tmp/diff_new_pack.gGUzZa/_new  2014-02-15 17:21:59.000000000 +0100
@@ -111,6 +111,7 @@
 #
 cnf_ldat=$(TEXMF=$TEXMFSYSCONFIG kpsewhich language.dat 2> /dev/null)
 cnf_ldef=$(TEXMF=$TEXMFSYSCONFIG kpsewhich language.def 2> /dev/null)
+cnf_fmtu=$(TEXMF=$TEXMFSYSCONFIG kpsewhich fmtutil.cnf 2> /dev/null)
 
 if test -n "${cnf_ldat}" -a -n "${cnf_ldef}" ; then
     for cfg in ${cnf_ldat} ${cnf_ldef} ; do
@@ -187,6 +188,33 @@
     return $rc
 }
 
+
+has_formats()
+{
+    local hyphen
+    local OIFS="$IFS"
+    local IFS=$'\n'
+
+    local -a list=($(sed -r '/^#/d; /^[[:blank:]]*$/d' $cnf_fmtu))
+    local -a line
+    IFS="$OIFS"
+
+    local -i count=${#list[@]}
+    local -i last
+
+    while ((count-- > 0)) ; do
+       line=(${list[count]})
+       test ${line[2]} = "-" && continue
+       let last=${#line[@]}
+       let last--
+       kpsewhich -progname=${line[0]} -format=tex ${line[last]#\*} &>/dev/null 
|| continue
+       hyphen=$(kpsewhich -progname=${line[0]} -format=tex ${line[2]} 
2>/dev/null)
+       test -n "$hyphen" -a -e "$hyphen" -a "$hyphen" = "$1" || continue
+       return 0
+    done
+    return 1
+}
+
 #
 # Go further
 #
@@ -202,14 +230,18 @@
        echo $1 > ${md5_ldat}
        set -- $(md5sum < ${cnf_ldef})
        echo $1 > ${md5_ldef}
-       test $VERBOSE = true && echo -en "\r[ ]Handle language.dat setups."
-       fmtutil-sys ${option:+$option} --byhyphen ${cnf_ldat} < /dev/null 1>&4 
2>&4
-       let rc+=$?
-       test $VERBOSE = true && echo
-       test $VERBOSE = true && echo -en "\r[ ]Handle language.def setups."
-       fmtutil-sys ${option:+$option} --byhyphen ${cnf_ldef} < /dev/null 1>&4 
2>&4
-       let rc+=$?
-       test $VERBOSE = true && echo
+       if has_formats ${cnf_ldat} ; then
+           test $VERBOSE = true && echo -en "\r[ ]Handle language.dat setups."
+           fmtutil-sys ${option:+$option} --byhyphen ${cnf_ldat} < /dev/null 
1>&4 2>&4
+           let rc+=$?
+           test $VERBOSE = true && echo
+       fi
+       if has_formats ${cnf_ldef} ; then
+           test $VERBOSE = true && echo -en "\r[ ]Handle language.def setups."
+           fmtutil-sys ${option:+$option} --byhyphen ${cnf_ldef} < /dev/null 
1>&4 2>&4
+           let rc+=$?
+           test $VERBOSE = true && echo
+       fi
        ((rc != 0)) || rm -f /var/run/texlive/run-fmtutil.language
        ;;
     refresh)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to