[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.50-6-g5bed611

Andreas Beckmann anbe at debian.org
Sun Mar 17 01:04:47 UTC 2013


The following commit has been merged in the develop branch:
commit cbf871d28cb376edcc2f9782672446e07c26fa59
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sat Mar 16 00:45:06 2013 +0100

    post_setup_wheezy-fake-essential: ignore some purge failures
    
    unconditional ucf or deluser usage won't be fixed for wheezy
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>

diff --git a/custom-scripts/scripts-wheezy/post_setup_wheezy-fake-essential b/custom-scripts/scripts-wheezy/post_setup_wheezy-fake-essential
new file mode 100755
index 0000000..27cc1a6
--- /dev/null
+++ b/custom-scripts/scripts-wheezy/post_setup_wheezy-fake-essential
@@ -0,0 +1,23 @@
+#!/bin/sh
+set -e
+
+# The following issues won't be fixed in wheezy:
+#   - unconditional use of deluser during postrm purge
+#   - unconditional use of ucf during postrm purge
+# so add these packages to the "fake" essential set.
+USED_DURING_PURGE="adduser ucf"
+
+
+case ${PIUPARTS_OBJECTS%%=*} in
+	dpkg)
+		# don't install fake essential packages while creating the tarball
+		exit 0
+		;;
+	adduser|ucf)
+		# allow testing of the fake essential packages
+		exit 0
+		;;
+esac
+
+echo "*** Adding fake essential packages ***"
+apt-get install -yf $USED_DURING_PURGE
diff --git a/debian/changelog b/debian/changelog
index 6fbeadc..47bd682 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ piuparts (0.51) UNRELEASED; urgency=low
   * piuparts-analyze.py:
   * piuparts-report.py:
   * Makefile:
+  * scripts-wheezy/post_setup_wheezy-fake-essential: New custom script to
+    suppress some purge failures in wheezy.
 
  -- Andreas Beckmann <anbe at debian.org>  Sat, 16 Mar 2013 00:14:13 +0100
 

-- 
piuparts git repository



More information about the Piuparts-commits mailing list