[Piuparts-commits] [piuparts] 03/07: scripts/post_setup_minimize: new custom script to minimize chroots

Holger Levsen holger at layer-acht.org
Sat Jan 14 20:26:20 UTC 2017


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

holger pushed a commit to branch develop
in repository piuparts.

commit f78618e1b8c5e051a7998b3cda781141784758c7
Author: Andreas Beckmann <anbe at debian.org>
Date:   Sat Jan 14 19:18:29 2017 +0100

    scripts/post_setup_minimize: new custom script to minimize chroots
    
    debootstrap --exclude does not work as advertised (#830794)
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 custom-scripts/scripts/post_setup_minimize | 12 ++++++++++++
 debian/changelog                           |  2 ++
 2 files changed, 14 insertions(+)

diff --git a/custom-scripts/scripts/post_setup_minimize b/custom-scripts/scripts/post_setup_minimize
new file mode 100755
index 0000000..723bf5e
--- /dev/null
+++ b/custom-scripts/scripts/post_setup_minimize
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+# only while creating the tarball
+if [ "${PIUPARTS_OBJECTS%%=*}" = "dpkg" ]
+then
+	case $PIUPARTS_DISTRIBUTION in
+		sid|stretch)
+			dpkg --purge lsb-base tzdata
+			;;
+	esac
+fi
diff --git a/debian/changelog b/debian/changelog
index 37b1edc..df61643 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -35,6 +35,8 @@ piuparts (0.74) UNRELEASED; urgency=medium
     issues.
   * scripts/is_testable_uninstallable: New custom script to exclude some
     uninstallable (or similarily broken) packages from being tested.
+  * scripts/post_setup_minimize: New custom script to minimize chroots.
+    - Remove tzdata and lsb-base from sid and stretch.
   * custom-scripts/scripts-debug-{remove,purge}: Improved debugging of
     maintainer scripts during package removal.
   * known_problems/debsums_mismatch_*.conf: Report missing symlinks and

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



More information about the Piuparts-commits mailing list