#!/bin/bash # autogenerated, do not edit set -e case "$1" in remove|upgrade) if [ -x "/etc/init.d/xen" ]; then # Only call the init script when removing or while upgrading for # the currently running version of Xen. # # Otherwise, for example after a Xen version upgrade, autoremoval # of an obsolete xen-utils-V package would inadvertently stop # running daemons like xenconsoled. if [ "$(/usr/lib/xen-common/bin/xen-version)" = "4.17" ]; then invoke-rc.d xen stop || exit $? fi fi ;; deconfigure|failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # Automatically added by dh_python3 if command -v py3clean >/dev/null 2>&1; then py3clean -p xen-utils-4.17:amd64 else dpkg -L xen-utils-4.17:amd64 | sed -En -e '/^(.*)\/(.+)\.py$/s,,rm "\1/__pycache__/\2".*,e' find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir fi # End automatically added section exit 0