[subversion-commit] SVN tex-common commit + diffs: r904 - tex-common/trunk/scripts

Florent Rougon frn at costa.debian.org
Sun Feb 19 15:20:46 UTC 2006


Author: frn
Date: 2006-02-19 15:20:45 +0000 (Sun, 19 Feb 2006)
New Revision: 904

Modified:
   tex-common/trunk/scripts/postinst-tex
   tex-common/trunk/scripts/postrm-tex
Log:
* In postinst-tex, call updmap-sys only if it is available.

* In postrm-tex, don't even create the temporary file in
  dhit_check_run_without_errors() if we are going to remove it immediately
  afterwards (i.e., when "$1" isn't available).



Modified: tex-common/trunk/scripts/postinst-tex
===================================================================
--- tex-common/trunk/scripts/postinst-tex	2006-02-19 01:40:20 UTC (rev 903)
+++ tex-common/trunk/scripts/postinst-tex	2006-02-19 15:20:45 UTC (rev 904)
@@ -110,7 +110,9 @@
             fi
             for i in #WHATTODO# ; do
                 if [ "$i" = map ] ; then
-                    dhit_create_fontmaps
+                    if which updmap-sys >/dev/null; then
+                        dhit_create_fontmaps
+                    fi
                 fi
                 if [ "$i" = format ] ; then
                     for fmt in #FORMATS# ; do

Modified: tex-common/trunk/scripts/postrm-tex
===================================================================
--- tex-common/trunk/scripts/postrm-tex	2006-02-19 01:40:20 UTC (rev 903)
+++ tex-common/trunk/scripts/postrm-tex	2006-02-19 15:20:45 UTC (rev 904)
@@ -24,8 +24,8 @@
 
 dhit_check_run_without_errors ()
 {
-    tempfile=$(mktemp -p /tmp checkrun.XXXXXXXX)
     if which "$1" >/dev/null; then
+        tempfile=$(mktemp -p /tmp checkrun.XXXXXXXX)
         printf "Running $*. This may take some time..."
         set +e
         if "$@" > $tempfile 2>&1 ; then
@@ -40,9 +40,8 @@
             echo
         fi
         set -e
-    else
-        rm -f $tempfile
     fi
+
     return 0
 }
 




More information about the Pkg-tetex-commits mailing list