[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/2.6.1.rc3-1-30-g8966a43

Stig Sandbeck Mathisen ssm at debian.org
Sat Sep 11 08:57:15 UTC 2010


The following commit has been merged in the master branch:
commit 9f56669d6c7ebca9bff0981feec8d119ea95ef77
Author: Stig Sandbeck Mathisen <ssm at debian.org>
Date:   Fri Sep 10 21:20:50 2010 +0200

    Make sure the "puppet-common" package can be purged even when not fully installed (Closes: #596163)

diff --git a/debian/puppet-common.postrm b/debian/puppet-common.postrm
index 5ebf597..8419956 100644
--- a/debian/puppet-common.postrm
+++ b/debian/puppet-common.postrm
@@ -9,7 +9,9 @@ case "$1" in
 		# This directory can be removed without causing harm 
 		# according to upstream documentation.
 		rm -rf /var/lib/puppet/state
-		rmdir --ignore-fail-on-non-empty /var/lib/puppet
+		if [ -d /var/lib/puppet ]; then
+			rmdir --ignore-fail-on-non-empty /var/lib/puppet
+		fi
 
 		# Remove puppet log files
 		rm -rf /var/log/puppet/

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list