summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Bogatov <KAction@gnu.org>2018-04-14 18:02:10 +0300
committerDmitry Bogatov <KAction@gnu.org>2018-04-14 18:02:14 +0300
commit30ffe9ba78d89d1244acf77289c5a231670aa436 (patch)
tree07b0f060df0f7746016af4c0683106451eb72f5a
parentd7d7cd4071d19aa31325fe0a320a80a68dc17b40 (diff)
Invoke runit-helper only if it is available
-rw-r--r--debian/changelog7
-rw-r--r--postrm-runit13
2 files changed, 19 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index b405140..aef4f18 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
1dh-runit (2.7.2) unstable; urgency=medium
2
3 * Invoke runit-helper only if it is available. It ensures, that in
4 pathological case, when it isn't (piuparts), postrm script do not fail.
5
6 -- Dmitry Bogatov <KAction@gnu.org> Sat, 14 Apr 2018 17:58:58 +0300
7
1dh-runit (2.7.1) unstable; urgency=medium 8dh-runit (2.7.1) unstable; urgency=medium
2 9
3 * Upload to unstable. 10 * Upload to unstable.
diff --git a/postrm-runit b/postrm-runit
index edd9ee7..a306688 100644
--- a/postrm-runit
+++ b/postrm-runit
@@ -1,7 +1,18 @@
1# -*- shell-script -*- 1# -*- shell-script -*-
2export NAME='#NAME#' 2export NAME='#NAME#'
3/lib/runit-helper/runit-helper postrm "$@" 3
4# Unfortunately, we can not assume, that bin:runit-helper package
5# is installed at postrm stage.
6#
7# The only other option is embed whole runit-helper script here,
8# into postrm script of -run package, but it would be like static
9# linking, requiring rebuild of all reverse dependencies on every
10# change of dh-runit.
11if [ -x /lib/runit-helper/runit-helper ] ; then
12 /lib/runit-helper/runit-helper postrm "$@"
13fi
4 14
5# Local Variables: 15# Local Variables:
6# eval: (sh-set-shell "sh" t nil) 16# eval: (sh-set-shell "sh" t nil)
7# End: 17# End:
18# vim: ft=sh:sw=4