This file is indexed.

preinst is in python-logilab-astng 0.23.0-1ubuntu1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# TODO: remove this file after releasing Squeeze
set -e

PYCENTRAL=/usr/bin/pycentral

if [ "$1" = upgrade ]
then
       if dpkg --compare-versions "$2" lt 0.17.4-2 ; then
	   if [ -x $PYCENTRAL ]; then
               # explicitly remove old python-central files
               pycentral pkgremove python-logilab-astng
	   fi
       fi  
       # be really sure also removing left-over files and dirs
       # we do outside the previous 'if' since first pysupport
       # release was already distributed
       for pyversion in 2.4 2.5; do
           if [ -d /usr/lib/python$pyversion/site-packages/logilab/astng/ ]; then
               rm -f /usr/lib/python$pyversion/site-packages/logilab/astng/*
               rmdir --ignore-fail-on-non-empty /usr/lib/python$pyversion/site-packages/logilab/astng/
           fi
       done
fi