summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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