PKGBUILDs/extra/eric/eric.install

18 lines
476 B
Text
Raw Normal View History

2009-10-10 02:23:22 +00:00
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
}