[Pkg-samba-maint] [samba] 02/07: Fix libpam-winbind.prerm to be multiarch-safe (Closes: #647430)

Mathieu Parent sathieu at moszumanska.debian.org
Wed Jul 19 20:46:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

sathieu pushed a commit to branch master
in repository samba.

commit e64704dc309639b7321e82153ab68fa600c584a3
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Wed Jul 19 20:56:13 2017 +0200

    Fix libpam-winbind.prerm to be multiarch-safe (Closes: #647430)
    
    Inspired by other packages (systemd, sssd, pam, lxcfs, cgmanager)
---
 debian/libpam-winbind.prerm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/libpam-winbind.prerm b/debian/libpam-winbind.prerm
index e4d8a9f..ad655ca 100644
--- a/debian/libpam-winbind.prerm
+++ b/debian/libpam-winbind.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 winbind
 fi
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-samba/samba.git




More information about the Pkg-samba-maint mailing list