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

This commit is contained in:
Daniel Baumann 2011-07-19 10:08:24 +02:00
parent cff7687442
commit 37e1c24e22
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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