~sbeattie/checkbox/lp324215

« back to all changes in this revision

Viewing changes to install/postinst

  • Committer: ubuntu
  • Date: 2008-04-14 02:14:56 UTC
  • Revision ID: ubuntu@ubuntu-20080414021456-2hb8r593xjz12fxu
Added python-support workaround for package upgrades.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
case "$1" in
5
5
    configure)
 
6
        # Workaround python-support which doesn't remove packages
 
7
        # under /usr/lib/python*
 
8
        for support_dir in python2.4 python2.5; do
 
9
            package_dir="/usr/lib/$support_dir/site-packages/$package"
 
10
            [ -e "$package_dir" ] && rm -fr $package_dir
 
11
        done
 
12
 
6
13
        # Create a temporary file to generate the suggested
7
14
        # configuration file.
8
15
        tempfile=`tempfile -m 0644 -p hwtest`