[Debian-tex-commits] SVN tex-common commit + diffs: r3813 - tex-common/trunk/debian
Norbert Preining
preining at alioth.debian.org
Sat Mar 14 15:58:21 UTC 2009
Author: preining
Date: 2009-03-14 15:58:21 +0000 (Sat, 14 Mar 2009)
New Revision: 3813
Modified:
tex-common/trunk/debian/changelog
tex-common/trunk/debian/postinst.in
Log:
* add mktexlsr calling code from postinst-tex to the trigger action in
case it has never been run before. That allows fresh installations
to succeed. (Closes: #519701) [np]
Modified: tex-common/trunk/debian/changelog
===================================================================
--- tex-common/trunk/debian/changelog 2009-03-14 15:49:49 UTC (rev 3812)
+++ tex-common/trunk/debian/changelog 2009-03-14 15:58:21 UTC (rev 3813)
@@ -1,3 +1,11 @@
+tex-common (1.16) unstable; urgency=low
+
+ * add mktexlsr calling code from postinst-tex to the trigger action in
+ case it has never been run before. That allows fresh installations
+ to succeed. (Closes: #519701) [np]
+
+ -- Norbert Preining <preining at debian.org> Sat, 14 Mar 2009 16:57:24 +0100
+
tex-common (1.15) unstable; urgency=low
[ Norbert Preining ]
Modified: tex-common/trunk/debian/postinst.in
===================================================================
--- tex-common/trunk/debian/postinst.in 2009-03-14 15:49:49 UTC (rev 3812)
+++ tex-common/trunk/debian/postinst.in 2009-03-14 15:58:21 UTC (rev 3813)
@@ -49,10 +49,30 @@
update-updmap --quiet
update-language
update-fmtutil
+ # code from postinst-tex
+ if dhit_libkpathsea_configured; then
+ # mktexlsr may not be present
+ if which mktexlsr >/dev/null; then
+ tempfile=$(mktemp -p /tmp mktexlsr.XXXXXXXX)
+ printf "Running mktexlsr. This may take some time... "
+ if mktexlsr > $tempfile 2>&1 ; then
+ rm -f $tempfile
+ echo "done."
+ else
+ exec >&2
+ echo
+ echo "mktexlsr failed. Output has been stored in"
+ echo "$tempfile"
+ echo "Please include this file if you report a bug."
+ echo
+ exit 1
+ fi
+ fi
+ fi
case " $trigger " in
*" /etc/texmf/updmap.d "*)
# do the processing
- # code from postinst.tex
+ # code from postinst-tex
if dhit_libkpathsea_configured; then
if which updmap-sys >/dev/null; then
tempfile=$(mktemp -p /tmp updmap.XXXXXXXX)
More information about the Debian-tex-commits
mailing list