Use a trigger in invirt-base to run invirt-reload instead of the 0.0.19
authorEvan Broder <broder@mit.edu>
Mon, 26 Jan 2009 13:54:37 +0000 (08:54 -0500)
committerEvan Broder <broder@mit.edu>
Mon, 26 Jan 2009 13:54:37 +0000 (08:54 -0500)
postinst of xvm-*config.

svn path=/trunk/packages/invirt-base/; revision=2009

debian/changelog
debian/invirt-base.postinst [new file with mode: 0755]
debian/invirt-base.triggers [new file with mode: 0644]

index 4a9598e..aa55458 100644 (file)
@@ -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 <broder@mit.edu>  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 (executable)
index 0000000..a2ae96f
--- /dev/null
@@ -0,0 +1,45 @@
+#!/bin/sh
+# postinst script for #PACKAGE#
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# 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 (file)
index 0000000..0f1906f
--- /dev/null
@@ -0,0 +1 @@
+interest invirt-reload