[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#125857: gadfly: Fix for postinst



Package: gadfly
Version: 1.0-7.1
Severity: normal
Tags: patch

Please make the postinst script more robust by including the following
patch.

Thanks,
    Gregor

--- gadfly.postinst Wed Dec 19 21:18:22 2001
+++ gadfly.postinst.new	Wed Dec 19 21:22:29 2001
@@ -5,13 +5,14 @@
 #
 
 PACKAGE=gadfly
-DIRLIST="/usr/lib/python2.1/site-packages"
+PYVER=2.1
+DIRLIST="/usr/lib/python$PYVER/site-packages"
 
 case "$1" in
     configure|abort-upgrade|abort-remove|abort-deconfigure)
         for i in $DIRLIST ; do
-            python -O /usr/lib/python2.1/compileall.py -q $i
-            python /usr/lib/python2.1/compileall.py -q $i
+            /usr/bin/python$PYVER -O /usr/lib/python$PYVER/compileall.py -q $i
+            /usr/bin/python$PYVER /usr/lib/python$PYVER/compileall.py -q $i
         done
     ;;
 





Reply to: