summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2014-01-16 00:08:29 +0000
committerSteve Langasek <vorlon@debian.org>2019-01-08 22:11:52 -0800
commita5b156a4262d48c2dd06340dd8972200116fb913 (patch)
tree3d9d010d91d57dda5a1f16e8043875d25528d0ea
parent4ab556aaa3b1320b0e32dd91bf7992f67680506e (diff)
debian/libpam-cracklib.prerm: use $DPKG_MAINTSCRIPT_PACKAGE_COUNT to avoid
prematurely removing the PAM config when the package is installed for multiple architectures. Closes: #647428.
-rw-r--r--debian/changelog3
-rw-r--r--debian/libpam-cracklib.prerm2
2 files changed, 4 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 6c41b98c..131a0c00 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,9 @@ pam (1.1.8-1) UNRELEASED; urgency=medium
to the libpam-doc package. Closes: #700485.
* No need to override dh_compress in debian/rules, it already handles .html
files correctly.
+ * debian/libpam-cracklib.prerm: use $DPKG_MAINTSCRIPT_PACKAGE_COUNT to avoid
+ prematurely removing the PAM config when the package is installed for
+ multiple architectures. Closes: #647428.
-- Steve Langasek <vorlon@debian.org> Mon, 13 Jan 2014 22:40:56 -0800
diff --git a/debian/libpam-cracklib.prerm b/debian/libpam-cracklib.prerm
index 1b376409..fe234ac2 100644
--- a/debian/libpam-cracklib.prerm
+++ b/debian/libpam-cracklib.prerm
@@ -2,7 +2,7 @@
set -e
-if [ "$1" = remove ]; then
+if [ "$1" = remove ] && [ "${DPKG_MAINTSCRIPT_PACKAGE_REFCOUNT:-1}" = 1 ]; then
pam-auth-update --package --remove cracklib
fi