This file is indexed.

postinst is in python-fedmsg 0.9.3-2.

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
25
26
27
28
29
#!/bin/sh

set -e

# Handle files moved to other packages

for file in gateway.py ircbot.py relay.py; do
    removed_conffile="/etc/fedmsg.d/$file"

    dpkg-maintscript-helper rm_conffile "$removed_conffile" 0.7.6-1~ -- "$@"

    # Move the .dpkg-bak files for the new package to take over if
    # upgrading from an old-enough version

    if test "$1" = "configure" && dpkg --compare-versions "$2" lt '0.7.6-1~' &&
        ! test -e "$removed_conffile" &&
        test -r "$removed_conffile".dpkg-bak; then
        mv "$removed_conffile".dpkg-bak "$removed_conffile"
    fi

done


# Automatically added by dhpython:
if which pycompile >/dev/null 2>&1; then
	pycompile -p python-fedmsg 
fi

# End automatically added section