From 7abf7f8002ea98757b4675fbd7131515e9724559 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Mon, 17 Mar 2003 15:56:01 +0000 Subject: * Incorporation des modifs de Guillaume pour le nouveau package python --- debian/zinc-python.postinst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'debian/zinc-python.postinst') 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 # 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 ;; -- cgit v1.1