/usr/share/debhelper/autoscripts/prerm-dzextension is in zope-debhelper 0.3.16.
This file is owned by root:root, with mode 0o644.
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 | if which dzhandle >/dev/null; then
case "$1" in upgrade|remove)
# upgrade:
# - register instances, in which extension is upgraded
# - remove extension from instances
# remove:
# - register instances, in which extension is removed, needed
# for recovery in postinst abort-remove
# - remove extension from instances
# - maybe fail if extension installed in instance with addon policy
# all and addon-mode linked or tree-linked
dzhandle prerm-extension -m "$*" #DZ-DIR#
esac
fi
|