From: Evan Broder Date: Thu, 28 Jan 2010 02:53:04 +0000 (-0500) Subject: Run invirt-reload directly in the postinst of the fooconfig packages. X-Git-Tag: 0.51^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/xvm-devconfig.git/commitdiff_plain/1db4c2e2812c8eb2bda955c0ac0a3f3eb9ef11c7 Run invirt-reload directly in the postinst of the fooconfig packages. This replaces the old mechanism of using triggers. Activating triggers via a package.triggers file doesn't seem to have taken off in the Debian/Ubuntu communities. Instead, the standard approach seems to be to run the triggered command as usual, and add logic to the triggered command to postpone actually running itself until later. svn path=/trunk/packages/xvm-devconfig/; revision=2940 --- diff --git a/debian/changelog b/debian/changelog index a65c888..83869d3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +xvm-devconfig (0.51) unstable; urgency=low + + * Run invirt-reload in the postinsts, not using triggers. + + -- Evan Broder Wed, 27 Jan 2010 21:20:13 -0500 + xvm-devconfig (0.50) unstable; urgency=low * Add a cluster block for openais ring configuration. diff --git a/debian/xvm-devconfig.postinst b/debian/xvm-devconfig.postinst new file mode 100755 index 0000000..9309857 --- /dev/null +++ b/debian/xvm-devconfig.postinst @@ -0,0 +1,40 @@ +#!/bin/sh +# postinst script for xvm-devconfig +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + invirt-reload + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/xvm-devconfig.triggers b/debian/xvm-devconfig.triggers deleted file mode 100644 index 21273fd..0000000 --- a/debian/xvm-devconfig.triggers +++ /dev/null @@ -1 +0,0 @@ -activate invirt-reload