postinst is in python3-openstack-doc-tools 0.31.0-4.
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 35 36 37 38 | #!/bin/sh
set -e
if [ "$1" = "configure" ] ; then
update-alternatives --install /usr/bin/doc-tools-check-languages doc-tools-check-languages /usr/bin/python3-doc-tools-check-languages 200
update-alternatives --install /usr/bin/doc-tools-update-cli-reference doc-tools-update-cli-reference /usr/bin/python3-doc-tools-update-cli-reference 200
update-alternatives --install /usr/bin/openstack-auto-commands openstack-auto-commands /usr/bin/python3-openstack-auto-commands 200
update-alternatives --install /usr/bin/openstack-autohelp openstack-autohelp /usr/bin/python3-openstack-autohelp 200
update-alternatives --install /usr/bin/openstack-doc-test openstack-doc-test /usr/bin/python3-openstack-doc-test 200
update-alternatives --install /usr/bin/openstack-generate-docbook openstack-generate-docbook /usr/bin/python3-openstack-generate-docbook 200
update-alternatives --install /usr/bin/openstack-generate-pot openstack-generate-pot /usr/bin/python3-openstack-generate-pot 200
update-alternatives --install /usr/bin/openstack-jsoncheck openstack-jsoncheck /usr/bin/python3-openstack-jsoncheck 200
update-alternatives --install /usr/bin/doc-tools-build-rst doc-tools-build-rst /usr/bin/python3-doc-tools-build-rst 200
for i in /usr/share/openstack-doc-tools/cleanup/python3-*.py /usr/share/openstack-doc-tools/cleanup/retf/python3-*.py ; do
FILENAME=`basename $i | sed s/python3-//`
DIRNAME=`dirname $i`
update-alternatives --install $DIRNAME/$FILENAME openstack-doc-tools-$FILENAME $i 200
done
fi
# Automatically added by dhpython:
if which py3compile >/dev/null 2>&1; then
py3compile -p python3-openstack-doc-tools
fi
# End automatically added section
# Automatically added by dhpython:
if which py3compile >/dev/null 2>&1; then
py3compile -p python3-openstack-doc-tools /usr/share
fi
# End automatically added section
exit 0
|