From 3b1ee3ad06bfc58be0e79f85af53c5d6620700b3 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Mon, 26 Jan 2009 08:54:37 -0500 Subject: [PATCH] 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 --- debian/changelog | 7 +++++++ debian/invirt-base.postinst | 45 +++++++++++++++++++++++++++++++++++++++++++ debian/invirt-base.triggers | 1 + 3 files changed, 53 insertions(+) create mode 100755 debian/invirt-base.postinst create mode 100644 debian/invirt-base.triggers 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 -- 1.7.9.5