From: Evan Broder Date: Mon, 26 Jan 2009 13:54:37 +0000 (-0500) Subject: Use a trigger in invirt-base to run invirt-reload instead of the X-Git-Tag: 0.0.19^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-base.git/commitdiff_plain/3b1ee3ad06bfc58be0e79f85af53c5d6620700b3?hp=b562b266e557bcb8986105029be42c5317a5f81a Use a trigger in invirt-base to run invirt-reload instead of the postinst of xvm-*config. svn path=/trunk/packages/invirt-base/; revision=2009 --- diff --git a/debian/changelog b/debian/changelog index 4a9598e..aa55458 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +invirt-base (0.0.19) unstable; urgency=low + + * Use triggers to run invirt-reload whenver one of the config packages + is updated + + -- Evan Broder Mon, 26 Jan 2009 08:06:05 -0500 + invirt-base (0.0.18) unstable; urgency=low * run_parts_list: fix unclear docstring diff --git a/debian/invirt-base.postinst b/debian/invirt-base.postinst new file mode 100755 index 0000000..a2ae96f --- /dev/null +++ b/debian/invirt-base.postinst @@ -0,0 +1,45 @@ +#!/bin/sh +# postinst script for #PACKAGE# +# +# 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) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + triggered) + invirt-reload + ;; + + *) + 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/invirt-base.triggers b/debian/invirt-base.triggers new file mode 100644 index 0000000..0f1906f --- /dev/null +++ b/debian/invirt-base.triggers @@ -0,0 +1 @@ +interest invirt-reload