[SCM] Debian packaging of libmodule-build-perl branch, master, updated. debian/0.400100-1-2-g6ae5cbc

gregor herrmann gregoa at debian.org
Wed Jun 27 17:26:59 UTC 2012


The following commit has been merged in the master branch:
commit 6ea4df6cccfecbdaff16d2937aabbf6f3763a64a
Author: gregor herrmann <gregoa at debian.org>
Date:   Wed Jun 27 19:12:03 2012 +0200

    Divert config_data manpage in preinst/postrm.
    
    Thanks: Niko Tyni for the bug report.
    Closes: #667053.

diff --git a/debian/postrm b/debian/postrm
index 0d48fdf..e84602e 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -17,8 +17,6 @@ set -e
 # the debian-policy package
 
 
-DIVERSION=/usr/bin/config_data
-
 case "$1" in
     remove|abort-install|abort-upgrade|disappear)
         # we want to remove the diversion on aborted upgrades
@@ -27,7 +25,12 @@ case "$1" in
         if [ abort-upgrade != "$1" ] \
         || dpkg --compare-versions "$2" lt "0.340201-1"; then
             dpkg-divert --package libmodule-build-perl --remove --rename \
-            --divert $DIVERSION.diverted $DIVERSION
+            --divert /usr/bin/config_data.diverted /usr/bin/config_data
+        fi
+        if [ abort-upgrade != "$1" ] \
+        || dpkg --compare-versions "$2" lt "0.400100-2"; then
+            dpkg-divert --package libmodule-build-perl --remove --rename \
+            --divert /usr/share/man/man1/config_data.diverted.1.gz /usr/share/man/man1/config_data.1.gz
         fi
     ;;
 
diff --git a/debian/preinst b/debian/preinst
index 63d5511..78cb369 100644
--- a/debian/preinst
+++ b/debian/preinst
@@ -11,14 +11,17 @@ set -e
 # for details, see http://www.debian.org/doc/debian-policy/ or
 # the debian-policy package
 
-DIVERSION=/usr/bin/config_data
-
 case "$1" in
     install|upgrade)
         if [ upgrade != "$1" ] \
            || dpkg --compare-versions "$2" lt "0.340201-1"; then
             dpkg-divert --package libmodule-build-perl --add --rename \
-                --divert $DIVERSION.diverted $DIVERSION
+                --divert /usr/bin/config_data.diverted /usr/bin/config_data
+        fi
+        if [ upgrade != "$1" ] \
+           || dpkg --compare-versions "$2" lt "0.400100-2"; then
+            dpkg-divert --package libmodule-build-perl --add --rename \
+                --divert /usr/share/man/man1/config_data.diverted.1.gz /usr/share/man/man1/config_data.1.gz
         fi
 
     ;;

-- 
Debian packaging of libmodule-build-perl



More information about the Pkg-perl-cvs-commits mailing list