File: postinst

package info (click to toggle)
python-support 1.0.15
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 244 kB
  • ctags: 130
  • sloc: python: 732; perl: 249; sh: 31; makefile: 19
file content (20 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh
set -e

if [ "$1" = "triggered" ]; then
    update-python-modules --post-install
    exit 0
fi

# Remove the old directory.
if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl 0.90; then
    rm -rf /var/lib/python-support
fi

if ! [ -e /var/lib/python-support ]; then
    ln -sf /usr/lib/pymodules /var/lib/python-support
fi

#DEBHELPER#

update-python-modules --post-install python-support.private