[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

possible improvement of postinst etc.



I noticed that tetex-base and its branched(?) packages
had a bit inappropriate mintainer scripts.

Some of them used texhash and I prefer mktexlsr.  More
important problem, I guessed, was that some of them
forced mktexlsr to run without appropriate condition 
(see tetex-doc.postinst) or under inconsistent condition 
(see tetex-extra.postrm) and one of them didn't run mktexlsr
(see tetex-doc.postrm).

I believe the followin modification will improve the behavior
of installation and/or upgrade.

Best regards,			2002/9/19

-- 
 Debian Developer & Debian JP Developer - much more I18N of Debian
 Atsuhito Kohda <kohda@debian.org>
 Department of Math., Univ. of Tokushima

--- tetex-base/debian/postinst	2002-02-19 09:50:28.000000000 +0900
+++ tetex-base-1.0.2+20020911/debian/postinst	2002-09-17 15:35:00.000000000 +0900
@@ -40,7 +40,7 @@
     then
 #	$TEXCONFIG_P font options appendonlydir varfonts
 #	$TEXCONFIG_P font vardir /var/spool/texmf
-	/usr/bin/texhash
+	/usr/bin/mktexlsr
 	TEMPFILE=`tempfile -p tex`
 	echo "Running initex. This may take some time. ..."
 	$TEXCONFIG_P init > $TEMPFILE
--- tetex-base/debian/tetex-doc.postinst	2002-02-19 09:50:28.000000000 +0900
+++ tetex-base-1.0.2+20020911/debian/tetex-doc.postinst	2002-09-17 15:52:51.000000000 +0900
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-if [ -x /usr/bin/mktexlsr ]
+if [ x"$1" = "xconfigure" -a -x /usr/bin/mktexlsr ]
 then
     /usr/bin/mktexlsr
 fi
--- tetex-base/debian/tetex-extra.postinst	2002-02-19 09:50:28.000000000 +0900
+++ tetex-base-1.0.2+20020911/debian/tetex-extra.postinst	2002-09-17 15:34:42.000000000 +0900
@@ -25,7 +25,7 @@
 then
     if [ -e $TEXCONFIG_P ] && fgrep -q TEXMFMAIN /usr/share/texmf/web2c/texmf.cnf
     then
-	/usr/bin/texhash
+	/usr/bin/mktexlsr
 	TEMPFILE=`tempfile -p tex`
 	echo "Running initex for missing formats. This may take some time. ..."
 	fmtutil --missing > $TEMPFILE
--- tetex-base/debian/tetex-extra.postrm	2002-02-19 09:50:28.000000000 +0900
+++ tetex-base-1.0.2+20020911/debian/tetex-extra.postrm	2002-09-17 15:51:15.000000000 +0900
@@ -7,9 +7,9 @@
 TEXMF=
 TEXCONFIG=/usr/bin/texconfig
 
-if [ -e $TEXCONFIG ]
+if [ x"$1" = "xremove" -a -x /usr/bin/mktexlsr ]
 then
-    /usr/bin/texhash
+    /usr/bin/mktexlsr
 #    $TEXCONFIG init
 fi
 
--- tetex-base/debian/tetex-doc.postrm	1970-01-01 09:00:00.000000000 +0900
+++ tetex-base-1.0.2+20020911/debian/tetex-doc.postrm	2002-09-17 15:51:55.000000000 +0900
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+
+if [ x"$1" = "xremove" -a -x /usr/bin/mktexlsr ]
+then
+    /usr/bin/mktexlsr
+fi
+
+#DEBHELPER#



Reply to: