]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-python
Typo. Closes: #653339
[debhelper.git] / autoscripts / postinst-python
index 6f1f9a5b885e9ebe9005470ccaef5067ef8a88a6..5a1943ebb58a90a7ebd2be540bcbee321febee3e 100644 (file)
@@ -1,8 +1,7 @@
 PYTHON=#PYVER#
-if which $PYTHON >/dev/null 2>&1; then
+if which $PYTHON >/dev/null 2>&1 && [ -e /usr/lib/$PYTHON/compileall.py ]; then
        DIRLIST="#DIRLIST#"
        for i in $DIRLIST ; do
-               $PYTHON -O /usr/lib/$PYTHON/compileall.py -q $i
                $PYTHON /usr/lib/$PYTHON/compileall.py -q $i
        done
 fi