[Pkg-sympa-commits] [SCM] sympa Debian packaging branch, master, updated. debian/6.1.11_dfsg-3-6-g7732b81
Emmanuel Bouthenot
kolter at openics.org
Sat Jun 16 19:18:13 UTC 2012
The following commit has been merged in the master branch:
commit ff0274b6422f0996111342ca97a2be26bbe0e9a4
Author: Emmanuel Bouthenot <kolter at openics.org>
Date: Tue May 29 20:03:42 2012 +0000
Include debconf and dbconfig libraries in maintainer scripts only when it's possible (#673990)
diff --git a/debian/sympa.postinst b/debian/sympa.postinst
index fd0489b..491564d 100644
--- a/debian/sympa.postinst
+++ b/debian/sympa.postinst
@@ -6,9 +6,13 @@
set -e
-# Source debconf library
-. /usr/share/debconf/confmodule
-. /usr/share/dbconfig-common/dpkg/postinst
+if [ -f /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+fi
+
+if [ -f /usr/share/dbconfig-common/dpkg/postinst ]; then
+ . /usr/share/dbconfig-common/dpkg/postinst
+fi
conf=/etc/sympa/sympa.conf
wwconf=/etc/sympa/wwsympa.conf
diff --git a/debian/sympa.postrm b/debian/sympa.postrm
index 785d9b7..77ecffa 100644
--- a/debian/sympa.postrm
+++ b/debian/sympa.postrm
@@ -2,9 +2,14 @@
set -e
-. /usr/share/debconf/confmodule
-. /usr/share/dbconfig-common/dpkg/postrm
-dbc_go sympa $@
+if [ -f /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+fi
+
+if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
+ . /usr/share/dbconfig-common/dpkg/postrm
+ dbc_go sympa $@
+fi
case "$1" in
remove)
diff --git a/debian/sympa.prerm b/debian/sympa.prerm
index 910523e..f20a345 100644
--- a/debian/sympa.prerm
+++ b/debian/sympa.prerm
@@ -6,9 +6,14 @@
set -e
-. /usr/share/debconf/confmodule
-. /usr/share/dbconfig-common/dpkg/prerm
-dbc_go sympa $@
+if [ -f /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+fi
+
+if [ -f /usr/share/dbconfig-common/dpkg/prerm ]; then
+ . /usr/share/dbconfig-common/dpkg/prerm
+ dbc_go sympa $@
+fi
if [ "$1" = "remove" ]; then
rm -f /etc/mail/smrsh/bouncequeue /etc/mail/smrsh/queue
--
sympa Debian packaging
More information about the Pkg-sympa-commits
mailing list