From f05e3f012ab49da19dcd43d29d523e58b20979a8 Mon Sep 17 00:00:00 2001 From: rmurray <> Date: Wed, 19 Mar 2003 01:41:02 +0000 Subject: [PATCH] use the right version of python in the maintainer scripts --- debian/changelog | 6 ++++++ debian/postinst | 10 +++++----- debian/prerm | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/debian/changelog b/debian/changelog index 07d47a5..2c35f86 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +userdir-ldap (0.3.4) unstable; urgency=low + + * Use the right python version in the maintainer scripts + + -- Ryan Murray Tue, 18 Mar 2003 19:26:31 -0700 + userdir-ldap (0.3.3) unstable; urgency=low * Rebuild for python2.1 and woody diff --git a/debian/postinst b/debian/postinst index f4d07c7..8d1001c 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,17 +1,17 @@ #! /bin/bash -e # -# Debian postinst script for Python 1.5 hierarchical modules +# Debian postinst script for Python hierarchical modules # Written by Gregor Hoffleit # -NAME=userdir-ldap -DIRLIST="/usr/lib/python1.5/site-packages" +PYTHON_VER="2.1" +DIRLIST="/usr/lib/python$PYTHON_VER/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$PYTHON_VER/compileall.py -q $i + python /usr/lib/python$PYTHON_VER/compileall.py -q $i done ;; diff --git a/debian/prerm b/debian/prerm index 57e3259..d300f6c 100644 --- a/debian/prerm +++ b/debian/prerm @@ -1,6 +1,6 @@ #! /bin/bash -e # -# Debian prerm script for Python 1.5 hierarchical modules +# Debian prerm script for Python hierarchical modules # Written by Gregor Hoffleit # -- 2.20.1