diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/zinc-python.postinst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/debian/zinc-python.postinst b/debian/zinc-python.postinst index 66670a3..0f85b0a 100644 --- a/debian/zinc-python.postinst +++ b/debian/zinc-python.postinst @@ -1,17 +1,18 @@ #! /bin/bash -e # -# Debian postinst script for Python 1.5 hierarchical modules +# Debian postinst script for Python hierarchical modules # Written by Gregor Hoffleit <flight@debian.org> # NAME=zinc-python -DIRLIST="/usr/lib/python1.5/site-packages" +DEFAULT_VERSION_PYTHON=`dpkg -p python| grep -e "^Version:" |cut -d" " -f2|cut -d"." -f1-2` +DIRLIST="/usr/lib/python${DEFAULT_VERSION_PYTHON}/site-packages" case "$1" in configure|abort-upgrade|abort-remove|abort-deconfigure) for i in $DIRLIST ; do - python -O /usr/lib/python1.5/compileall.py -q $i - python /usr/lib/python1.5/compileall.py -q $i + python -O /usr/lib/python${DEFAULT_VERSION_PYTHON}/compileall.py -q $i + python /usr/lib/python${DEFAULT_VERSION_PYTHON}/compileall.py -q $i done ;; |