lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r2120 - debian/nss-pam-ldapd/trunk/debian

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r2120 - debian/nss-pam-ldapd/trunk/debian



Author: arthur
Date: Sun Sep 28 15:06:12 2014
New Revision: 2120
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=2120&view=revision

Log:
do not remove PAM profile when another architecture remains (taken from the 
libpam_ldap package)

Modified:
   debian/nss-pam-ldapd/trunk/debian/changelog
   debian/nss-pam-ldapd/trunk/debian/libpam-ldapd.prerm

Modified: debian/nss-pam-ldapd/trunk/debian/changelog
==============================================================================
--- debian/nss-pam-ldapd/trunk/debian/changelog Tue Sep  2 23:51:58 2014        
(r2119)
+++ debian/nss-pam-ldapd/trunk/debian/changelog Sun Sep 28 15:06:12 2014        
(r2120)
@@ -6,8 +6,10 @@
   * debconf translation updates:
     - Norwegian Bokmål by Petter Reinholdtsen (closes: #758693)
   * prefer nslcd as nslcd-2 implementation (closes: #760287)
+  * do not remove PAM profile when another architecture remains (taken from
+    the libpam_ldap package)
 
- -- Arthur de Jong <adejong@debian.org>  Tue, 02 Sep 2014 20:00:00 +0200
+ -- Arthur de Jong <adejong@debian.org>  Sun, 28 Sep 2014 15:00:00 +0200
 
 nss-pam-ldapd (0.9.4-2) unstable; urgency=low
 

Modified: debian/nss-pam-ldapd/trunk/debian/libpam-ldapd.prerm
==============================================================================
--- debian/nss-pam-ldapd/trunk/debian/libpam-ldapd.prerm        Tue Sep  2 
23:51:58 2014        (r2119)
+++ debian/nss-pam-ldapd/trunk/debian/libpam-ldapd.prerm        Sun Sep 28 
15:06:12 2014        (r2120)
@@ -2,7 +2,9 @@
 
 set -e
 
-if [ "$1" = remove ]
+# remove the PAM profile unless there are more than one instances
+# of libpam-ldapd installed (multi-arch)
+if [ "$1" = "remove" ] && [ "$(dpkg-query -W libpam-ldapd 2> /dev/null | wc 
-l)" = 1 ]
 then
   pam-auth-update --package --remove ldap
 fi
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/