Skip to content
Snippets Groups Projects
Commit 248a128b authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

* move "-e" from shebang to "set -e" line (in case script is run by hand)

* bump PREVVER to 2.6.5+20100630-2~ and use -m compileall in debian/python-minimal.postinst
parent cef46581
No related branches found
No related tags found
No related merge requests found
#! /bin/sh -e
#! /bin/sh
set -e
# runpy.py is not available in pythonX.Y-minimal and thus "python -m compileall"
# cannot be used, temporary workaround:
python /usr/lib/python2.6/compileall.py /usr/share/python/ >/dev/null
python -m compileall /usr/share/python/ >/dev/null
#DEBHELPER#
#! /bin/sh -e
#! /bin/sh
set -e
find /usr/share/python/ -name '*.py[oc]' -delete
#DEBHELPER#
#! /bin/sh -e
#! /bin/sh
set -e
new_config_file()
{
......
#! /bin/sh -e
#! /bin/sh
set -e
case "$1" in
purge)
......
#! /bin/sh -e
#! /bin/sh
set -e
# remove the python alternatives before installing our own python link
......
#! /bin/sh -e
#! /bin/sh
set -e
case "$1" in
remove)
......
......@@ -20,7 +20,7 @@ export NVER=2.7
export PVER=python2.6
PREVVER := $(shell awk '/^python/ && NR > 1 {print substr($$2,2,length($$2)-2); exit}' debian/changelog)
PREVVER := 2.6.5+20100616-1~
PREVVER := 2.6.5+20100630-2~
PWD := $(shell pwd)
......
#! /bin/sh -e
#! /bin/sh
set -e
VERSION=${2#python}
if which python >/dev/null 2>&1 && which pycompile >/dev/null 2>&1; then
......
#! /bin/sh -e
#! /bin/sh
set -e
VERSION=${2#python}
if which python >/dev/null 2>&1 && which pyclean >/dev/null 2>&1; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment