diff options
Diffstat (limited to 'test/eric/eric.install')
-rw-r--r-- | test/eric/eric.install | 17 |
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 +} |