summaryrefslogtreecommitdiffstats
path: root/extra/eric/eric.install
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2009-11-24 11:06:31 +0100
committersibel <lesibel@free.fr>2009-11-24 11:06:31 +0100
commit65ee1c51a2bfb73fdd60db617f9b23a9e14c7180 (patch)
treecd0c846aca14cb341d5d9ec73a1fb846255e70ed /extra/eric/eric.install
parentec33f3ced5473ef2421722568c098ddbb711dcd1 (diff)
downloadnutyx-extra-65ee1c51a2bfb73fdd60db617f9b23a9e14c7180.tar.gz
nutyx-extra-65ee1c51a2bfb73fdd60db617f9b23a9e14c7180.tar.bz2
nutyx-extra-65ee1c51a2bfb73fdd60db617f9b23a9e14c7180.tar.xz
nutyx-extra-65ee1c51a2bfb73fdd60db617f9b23a9e14c7180.zip
Ajout de eric4#4.3.9-1
Diffstat (limited to 'extra/eric/eric.install')
-rw-r--r--extra/eric/eric.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/extra/eric/eric.install b/extra/eric/eric.install
new file mode 100644
index 000000000..8316448e9
--- /dev/null
+++ b/extra/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
+}