[Piuparts-commits] [SCM] piuparts git repository branch, bikeshed, updated. 0.51-10-g4c888cd

Holger Levsen holger at layer-acht.org
Wed May 15 17:42:06 UTC 2013


The following commit has been merged in the bikeshed branch:
commit 4c888cd1ea43ea13526a1cb636edc969ad7c20d5
Author: Andreas Beckmann <anbe at debian.org>
Date:   Wed May 15 17:16:15 2013 +0200

    support for testing without /usr/share/doc/*/*
    
    in order to catch maintainer scripts relying on /usr/share/doc content
    
    keep the directories (or symlinks) and the copyright files to avoid
    triggering other tests to fail
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>

diff --git a/custom-scripts/scripts-no-usr-share-doc/post_setup_disable_usr_share_doc b/custom-scripts/scripts-no-usr-share-doc/post_setup_disable_usr_share_doc
new file mode 100755
index 0000000..239d23f
--- /dev/null
+++ b/custom-scripts/scripts-no-usr-share-doc/post_setup_disable_usr_share_doc
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+case ${PIUPARTS_OBJECTS%%=*} in
+	dpkg)
+		# skip while creating the tarball
+		exit 0
+		;;
+esac
+
+# clear out /usr/share/doc
+# but keep the directories (and symlinks) as well as the copyright files
+cat << EOF > /etc/dpkg/dpkg.cfg.d/piuparts-path-exclude
+path-exclude=/usr/share/doc/*/*
+path-include=/usr/share/doc/*/copyright
+EOF
diff --git a/debian/changelog b/debian/changelog
index db02726..9bfb7f3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,9 @@ piuparts (0.52) UNRELEASED; urgency=low
   * piuparts-report.py:
   * Makefile:
     - Switch default target from 'install' to 'build'.
+  * scripts-no-usr-share-doc/post_setup_disable_usr_share_doc: New custom
+    script to instruct dpkg to skip installing most files in /usr/share/doc.
+    This should catch maintainer scripts relying on /usr/share/doc content.
 
   [ Holger Levsen ]
   * piuparts-report: add links to Debian QA group and jenkins.debian.net in

-- 
piuparts git repository



More information about the Piuparts-commits mailing list