#!/bin/sh set -e . /usr/share/debconf/confmodule # Restore the 2.16 version.py diversion in case it was accidentally removed # during upgrade. See #993559 if [ -z "$(dpkg-divert --list /usr/share/ganeti/2.16/ganeti/utils/version.py)" ]; then echo "Restoring diversion of /usr/share/ganeti/2.16/ganeti/utils/version.py)" dpkg-divert --add --rename --package ganeti-3.1 \ --divert /usr/share/ganeti/2.16/ganeti/utils/version.py.orig \ /usr/share/ganeti/2.16/ganeti/utils/version.py fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. # Automatically added by dh_python3 if command -v py3compile >/dev/null 2>&1; then py3compile -p ganeti-3.1 /usr/share/ganeti/3.1 fi if command -v pypy3compile >/dev/null 2>&1; then pypy3compile -p ganeti-3.1 /usr/share/ganeti/3.1 || true fi # End automatically added section