[SCM] live-build branch, debian-next, updated. debian/3.0_a25-1-8-g37e1c24

Daniel Baumann daniel at debian.org
Tue Jul 19 08:06:53 UTC 2011


The following commit has been merged in the debian-next branch:
commit 37e1c24e22a5757de7319ac12dba72eb918508a7
Author: Daniel Baumann <daniel at debian.org>
Date:   Tue Jul 19 10:08:24 2011 +0200

    Adding hook to remove python py files, thanks to Colin Watson <cjwatson at ubuntu.com> (Closes: #631281).

diff --git a/share/hooks/remove-python-py.chroot b/share/hooks/remove-python-py.chroot
new file mode 100755
index 0000000..a8ff40a
--- /dev/null
+++ b/share/hooks/remove-python-py.chroot
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Remove Python *.py files.
+#
+# This removes byte-compiled Python modules to save some space.
+
+find /usr -name "*.pyc" -print0 | xargs -0r rm -f
diff --git a/share/hooks/update-apt-xapian-index.chroot b/share/hooks/update-apt-xapian-index.chroot
index f93c042..dcb39b2 100755
--- a/share/hooks/update-apt-xapian-index.chroot
+++ b/share/hooks/update-apt-xapian-index.chroot
@@ -10,5 +10,5 @@ set -e
 
 if [ -x /usr/sbin/update-apt-xapian-index ]
 then
-	/usr/sbin/update-apt-xapian-index --force --quiet
+	PYTHONDONTWRITEBYTECODE=1 /usr/sbin/update-apt-xapian-index --force --quiet
 fi

-- 
live-build



More information about the debian-live-changes mailing list