This file is indexed.

postinst is in python-openstack-doc-tools 1.6.0-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
30
31
32
33
34
#!/bin/sh

set -e

if [ "$1" = "configure" ] ; then
	update-alternatives --install /usr/bin/doc-tools-check-languages doc-tools-check-languages /usr/bin/python2-doc-tools-check-languages 300
	update-alternatives --install /usr/bin/doc-tools-update-cli-reference doc-tools-update-cli-reference /usr/bin/python2-doc-tools-update-cli-reference 300
	update-alternatives --install /usr/bin/openstack-auto-commands openstack-auto-commands /usr/bin/python2-openstack-auto-commands 300
	update-alternatives --install /usr/bin/openstack-jsoncheck openstack-jsoncheck /usr/bin/python2-openstack-jsoncheck 300
	update-alternatives --install /usr/bin/doc-tools-build-rst doc-tools-build-rst /usr/bin/python2-doc-tools-build-rst 300
	for i in /usr/share/openstack-doc-tools/cleanup/python2-*.py /usr/share/openstack-doc-tools/cleanup/retf/python2-*.py ; do
		FILENAME=`basename $i | sed s/python2-//`
		DIRNAME=`dirname $i`
		update-alternatives --install $DIRNAME/$FILENAME openstack-doc-tools-$FILENAME $i 300
	done
fi


# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
	pycompile -p python-openstack-doc-tools 
fi

# End automatically added section

# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
	pycompile -p python-openstack-doc-tools /usr/share
fi

# End automatically added section


exit 0