use the right version of python in the maintainer scripts
authorrmurray <>
Wed, 19 Mar 2003 01:41:02 +0000 (01:41 +0000)
committerrmurray <>
Wed, 19 Mar 2003 01:41:02 +0000 (01:41 +0000)
debian/changelog
debian/postinst
debian/prerm

index 07d47a5..2c35f86 100644 (file)
@@ -1,3 +1,9 @@
+userdir-ldap (0.3.4) unstable; urgency=low
+
+  * Use the right python version in the maintainer scripts
+
+ -- Ryan Murray <rmurray@gluck.debian.org>  Tue, 18 Mar 2003 19:26:31 -0700
+
 userdir-ldap (0.3.3) unstable; urgency=low
 
   * Rebuild for python2.1 and woody
index f4d07c7..8d1001c 100644 (file)
@@ -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 <flight@debian.org>
 #
 
-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
     ;;
 
index 57e3259..d300f6c 100644 (file)
@@ -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 <flight@debian.org>
 #