Hi, This is the third version of the patch, addressing some concerns by Helmut. The changelog compared to the version two is:
- Created a entry in the changelog - Fixes the patch directory, so, now you can apply with patch using -p1 instead of -p2. Thanks Breno
Index: libpam-ldap-184/debian/changelog =================================================================== --- libpam-ldap-184.orig/debian/changelog +++ libpam-ldap-184/debian/changelog @@ -1,3 +1,11 @@ +libpam-ldap (184-8.7) unstable; urgency=medium + + * Non-maintainer upload. + * Do not remove config files when removing the package from one architecture + in a multiarch environemnt. Closes: 706185 + + -- Breno Leitao <bren...@br.ibm.com> Tue, 22 Jul 2014 14:31:57 +0000 + libpam-ldap (184-8.6) unstable; urgency=low * Non-maintainer upload. Index: libpam-ldap-184/debian/libpam-ldap.postrm =================================================================== --- libpam-ldap-184.orig/debian/libpam-ldap.postrm +++ libpam-ldap-184/debian/libpam-ldap.postrm @@ -7,7 +7,8 @@ PASSWDFILE="/etc/pam_ldap.secret" action=$1 -if [ "$action" = "purge" ]; then +if [ "$action" = "purge" ] && \ +[ "$(dpkg-query --show libpam-ldap 2> /dev/null | wc -l)" = 1 ]; then rm -f $CONFFILE $PASSWDFILE fi Index: libpam-ldap-184/debian/libpam-ldap.prerm =================================================================== --- libpam-ldap-184.orig/debian/libpam-ldap.prerm +++ libpam-ldap-184/debian/libpam-ldap.prerm @@ -2,7 +2,8 @@ set -e -if [ "$1" = remove ]; then +if [ "$1" = remove ] && \ +[ "$(dpkg-query --show libpam-ldap 2> /dev/null | wc -l)" = 1 ]; then pam-auth-update --package --remove ldap fi