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

[SCM] Debian packaging of luatex) branch, master, updated. debian/0.76.0-2-1-g45e10fe



The following commit has been merged in the master branch:
commit 45e10fef26a4c25c504d4c26f31a86d6008b5685
Author: Norbert Preining <preining@debian.org>
Date:   Tue May 21 22:16:34 2013 +0900

    remove postinst code for lenny (Closes: #709172)
    
    the whole code that deals with diversions is only here to deal
    with upgrades from lenny, which is not necessary to consider
    anymore. Remove the code also drops all calls to dpkg-divert,
    thus closes this bug.

diff --git a/debian/changelog b/debian/changelog
index 274f430..f8b9e96 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+luatex (0.76.0-3) UNRELEASED; urgency=low
+
+  * remove postinst code for lenny (Closes: #709172)
+
+ -- Norbert Preining <preining@debian.org>  Tue, 21 May 2013 22:19:46 +0900
+
 luatex (0.76.0-2) unstable; urgency=low
 
   * break against older context (Closes: #709024)
diff --git a/debian/postinst b/debian/postinst
index 662ae60..83ccf02 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -61,60 +61,6 @@ case "$1" in
 esac
 
 
-case "$1" in
-    configure)
-        # removing diversions is a pain, due to the fact that dpkg in 
-        # lenny ships a dpkg-divert that automatically adds --rename
-        # to the --remove which breaks upgrades from lenny, we move
-        # the whole dpkg-divert remove code here.
-        # we have to ensure we do not die here (set -e above) because
-        # grep returns false if no match was found
-        set +e
-        DIVERSIONS=`env LC_ALL=C /usr/sbin/dpkg-divert --list | grep -E 'by luatex$'`
-        if [ -n "$DIVERSIONS" ] ; then
-            # first try with --rename 
-            echo "$DIVERSIONS" | while read diversion of FILE to DIVERTED by PACKAGE; do
-                dpkg-divert --test --package "$PACKAGE" --remove --rename "$FILE" >/dev/null 2>&1
-                if ! [ $? = 0 ] ; then
-                    # try to remove diversion without --rename
-                    dpkg-divert --package "$PACKAGE" --remove "$FILE"
-                else
-                    dpkg-divert --package "$PACKAGE" --remove --rename "$FILE"
-                fi
-            done
-        fi
-        set -e
-        texdoc_check_passed=0
-        if [ -L /usr/bin/texdoc ] ; then
-            texdoctarget=`readlink /usr/bin/texdoc`
-            if [ ! -r "$texdoctarget" ] && 
-               [ "$texdoctarget" = "texdoclua" ] ; then
-                texdoc_check_passed=1
-            fi
-        else
-            if ! [ -e /usr/bin/texdoc ] ; then
-                texdoc_check_passed=1
-            fi
-        fi
-        if [ $texdoc_check_passed = 1 ] ; then
-            if [ -L /usr/bin/texdoc.notluatex ] ; then
-                texdocnotluatextarget=`readlink /usr/bin/texdoc.notluatex`
-                if  [ -r "/usr/bin/$texdocnotluatextarget" ] &&
-                    [ "$texdocnotluatextarget" = "../share/texmf-texlive/scripts/texdoc/texdoc.tlu" ] ; then
-                    # new luatex installed,
-                    # new texlive-base >= 2009 installed
-                    # diversion have been removed above
-                    echo "Cleaning up luatex diversion mess:"
-                    echo " - remove old dead /usr/bin/texdoc link"
-                    rm -f /usr/bin/texdoc
-                    echo " - reinstantiate from forgotten diversion texdoc.notluatex"
-                    mv /usr/bin/texdoc.notluatex /usr/bin/texdoc
-                fi
-            fi
-        fi
-        ;;
-esac
-
 #DEBHELPER#
 
 

-- 
Debian packaging of luatex)


Reply to: