[Pkg-net-snmp-commits] [SCM] Git repository for pkg-net-snmp branch, master, updated. debian/5.7.2_dfsg-7-3-g0b30a15

Hideki Yamane henrich at debian.org
Wed Jun 5 23:58:12 UTC 2013


The following commit has been merged in the master branch:
commit d9deceed21287d5bfd7dfae3a517c5b3c27b0c39
Author: Hideki Yamane <henrich at debian.org>
Date:   Thu Jun 6 08:27:24 2013 +0900

    fix #709761

diff --git a/debian/changelog b/debian/changelog
index a81d64b..70d2341 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+net-snmp (5.7.2~dfsg-8) UNRELEASED; urgency=low
+
+  * add libsnmp-perl.preinst to deal with empty directory by libsnmp15
+    package removal (Closes: #709761) 
+
+ -- Hideki Yamane <henrich at debian.org>  Thu, 06 Jun 2013 08:13:10 +0900
+
 net-snmp (5.7.2~dfsg-7) unstable; urgency=low
 
   * debian/control
diff --git a/debian/libsnmp-perl.preinst b/debian/libsnmp-perl.preinst
new file mode 100644
index 0000000..696fc08
--- /dev/null
+++ b/debian/libsnmp-perl.preinst
@@ -0,0 +1,30 @@
+#!/bin/sh
+# preinst script for libsnmp-perl
+
+set -e
+
+
+case "$1" in
+    install|upgrade)
+
+    DOCDIR=/usr/share/doc/libsnmp-perl
+    if [ -L $DOCDIR ]; then
+        rm $DOCDIR
+    fi
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

-- 
Git repository for pkg-net-snmp



More information about the Pkg-net-snmp-commits mailing list