summaryrefslogtreecommitdiffstats
path: root/test/eric/eric.install
blob: 8316448e962a8359d008dc339006953b8377072d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}