~ubuntu-branches/ubuntu/lucid/duplicity/lucid-proposed

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Steinar H. Gunderson
  • Date: 2006-11-11 13:32:07 UTC
  • mfrom: (2.1.3 feisty)
  • Revision ID: james.westby@ubuntu.com-20061111133207-9gizpeda242fwmtr
Tags: 0.4.2-10.1
Switch back to python 2.4, as python-central can apparently no longer cope
with 2.3, and 2.4 seems to work ok now; patch from Joey Hess.
(Closes: #396158)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -e
2
 
 
3
 
# Source debconf library.
4
 
. /usr/share/debconf/confmodule
5
 
 
6
 
PYTHON=$(readlink /usr/bin/python)
7
 
DIR='/usr/lib/'$PYTHON'/site-packages/duplicity/'
8
 
 
9
 
case "$1" in
10
 
        configure|abort-upgrade|abort-remove|abort-deconfigure)
11
 
                /usr/bin/$PYTHON -O /usr/lib/$PYTHON/compileall.py -q $DIR
12
 
                /usr/bin/$PYTHON /usr/lib/$PYTHON/compileall.py -q $DIR
13
 
        ;;
14
 
        *)
15
 
                echo "postinst called with unknown argument \`$1'" >&2
16
 
                exit 1
17
 
        ;;
18
 
esac
19
 
 
20
 
#DEBHELPER#