From 464f9fc1e0e23721f427be8a33c21a03f27e3f88 Mon Sep 17 00:00:00 2001 From: tnut Date: Sat, 27 Feb 2010 20:51:55 +0100 Subject: eric dans test --- test/eric/eric.install | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/eric/eric.install (limited to 'test/eric/eric.install') diff --git a/test/eric/eric.install b/test/eric/eric.install new file mode 100644 index 000000000..8316448e9 --- /dev/null +++ b/test/eric/eric.install @@ -0,0 +1,17 @@ +post_upgrade() { + post_remove $1 +} + +post_remove() { + if test -e usr/lib/python2.6/site-packages/sitecustomize.py + then + sed -i -e '/import sys/d' \ + usr/lib/python2.6/site-packages/sitecustomize.py + sed -i -e '/sys.setappdefaultencoding = sys.setdefaultencoding/d' \ + usr/lib/python2.6/site-packages/sitecustomize.py + if test ! -s usr/lib/python2.6/site-packages/sitecustomize.py + then + rm usr/lib/python2.6/site-packages/sitecustomize.py + fi + fi +} -- cgit v1.2.3-70-g09d2