summaryrefslogtreecommitdiffstats
path: root/test/eric/eric.install
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-02-27 20:51:55 +0100
committertnut <thierryn1 at hispeed dot ch>2010-02-27 20:51:55 +0100
commit464f9fc1e0e23721f427be8a33c21a03f27e3f88 (patch)
tree7ca76098905a1d2dd719990e1d2d239e1bc7c204 /test/eric/eric.install
parent3d09645352459f46b52cd13dbbba4d52c8f410fa (diff)
downloadnutyx-extra-464f9fc1e0e23721f427be8a33c21a03f27e3f88.tar.gz
nutyx-extra-464f9fc1e0e23721f427be8a33c21a03f27e3f88.tar.bz2
nutyx-extra-464f9fc1e0e23721f427be8a33c21a03f27e3f88.tar.xz
nutyx-extra-464f9fc1e0e23721f427be8a33c21a03f27e3f88.zip
eric dans test
Diffstat (limited to 'test/eric/eric.install')
-rw-r--r--test/eric/eric.install17
1 files changed, 17 insertions, 0 deletions
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
+}