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

[tex-common] 01/04: check for texlive-binaries status before running mtxrun



This is an automated email from the git hooks/post-receive script.

preining pushed a commit to branch experimental
in repository tex-common.

commit 59cf9d0e4f894cfd320c425cc647c1f42d9e5b9b
Author: Norbert Preining <preining@debian.org>
Date:   Thu May 22 10:22:36 2014 +0900

    check for texlive-binaries status before running mtxrun
---
 debian/changelog |  6 ++++--
 debian/postinst  | 11 +++++++++++
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 56f645c..be41727 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,10 @@
-tex-common (4.05) UNRELEASED; urgency=low
+tex-common (5.00) experimental; urgency=low
 
   * fix man page of update-updmap (Closes: #717070)
+  * check for proper installation of texlive-binaries before calling
+    mtxrun, otherwise we might have a broken luatex
 
- -- Norbert Preining <preining@debian.org>  Wed, 17 Jul 2013 12:40:37 +0900
+ -- Norbert Preining <preining@debian.org>  Thu, 22 May 2014 10:21:09 +0900
 
 tex-common (4.04) unstable; urgency=low
 
diff --git a/debian/postinst b/debian/postinst
index 9c1dc10..0cc039d 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -100,6 +100,17 @@ run_mtxrun_if_possible()
                     do_it=0
                     ;;
             esac
+            # we also need to make sure that texlive-binaries are correctly
+            # installed, otherwise luatex (called by mtxrun) might not work
+            stat=$(dpkg-query -W -f='${Status}' texlive-binaries 2>/dev/null || true)
+            case "$stat" in
+                "install ok installed")
+                    do_it=1
+                    ;;
+                *)
+                    do_it=0
+                    ;;
+            esac
             if [ "$do_it" = 1 ] ; then
                 tempfile=$(mktemp -p /tmp mtxrun.XXXXXXXX)
                 printf "Running mtxrun --generate. This may take some time... "

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/tex-common.git


Reply to: