[subversion-commit] SVN tex-common commit + diffs: r1490 -
tex-common/trunk/debian
Frank Küster
frank at costa.debian.org
Mon Jul 10 09:04:52 UTC 2006
Author: frank
Date: 2006-07-10 09:04:51 +0000 (Mon, 10 Jul 2006)
New Revision: 1490
Modified:
tex-common/trunk/debian/postinst.functions
tex-common/trunk/debian/postinst.in
Log:
properly check whether libkpathsea has been configured before trying to run mktexlsr
Modified: tex-common/trunk/debian/postinst.functions
===================================================================
--- tex-common/trunk/debian/postinst.functions 2006-07-10 08:31:41 UTC (rev 1489)
+++ tex-common/trunk/debian/postinst.functions 2006-07-10 09:04:51 UTC (rev 1490)
@@ -70,6 +70,12 @@
fi
}
+dhit_libkpathsea_configured ()
+{
+ kpsewhich --version >/dev/null 2>&1
+}
+
+
#################################################################
## End of function definitions from file postinst.functions
#################################################################
Modified: tex-common/trunk/debian/postinst.in
===================================================================
--- tex-common/trunk/debian/postinst.in 2006-07-10 08:31:41 UTC (rev 1489)
+++ tex-common/trunk/debian/postinst.in 2006-07-10 09:04:51 UTC (rev 1490)
@@ -132,9 +132,12 @@
# if available, run mktexlsr - this is needed for upgrades from versions
# prior to 0.26, which is the first to install a file in a TEXMF tree
- if [ -x "`which mktexlsr`" ]; then
- mktexlsr /usr/share/texmf/
+ if dhit_libkpathsea_configured; then
+ if which mktexlsr >/dev/null; then
+ mktexlsr /usr/share/texmf/
+ fi
fi
+
#
# do the config stuff
# db_get tex-common/managecache || true
More information about the Pkg-tetex-commits
mailing list