[debhelper-devel] Actually enable dh_installinit -R in compat level 10?
Peter Pentchev
roam at ringlet.net
Tue Jul 19 11:53:12 UTC 2016
Hi,
It looks like the manual page statement that -R (--restart-after-upgrade)
is enabled by default in compat level 10 is not entirely true. What do
you think about the attached trivial patch that makes it a bit more true? :)
Hm, I was wondering... would you like me to file a bug so that this may
be tracked across the various versions of debhelper in the archive's suites?
I'm not sure if any packages depend on -R by default yet, but if they do,
they are currently broken (dh_installinit stops the service before
the upgrade and starts it afterwards).
G'luck,
Peter
--
Peter Pentchev roam at ringlet.net roam at FreeBSD.org pp at storpool.com
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
-------------- next part --------------
From ec15d3cc67c9b709ec5e70eb2230fc501ac187e8 Mon Sep 17 00:00:00 2001
From: Peter Pentchev <roam at ringlet.net>
Date: Tue, 19 Jul 2016 14:44:49 +0300
Subject: [PATCH] dh_installinit: Actually enable -R in compat 10.
---
dh_installinit | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dh_installinit b/dh_installinit
index 981707b..812b03d 100755
--- a/dh_installinit
+++ b/dh_installinit
@@ -164,7 +164,7 @@ instances of the same text to be added to maintainer scripts.
=cut
-$dh{RESTART_AFTER_UPGRADE} = 1 if not compat(10);
+$dh{RESTART_AFTER_UPGRADE} = 1 if not compat(9);
init(options => {
"r" => \$dh{R_FLAG},
--
2.8.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20160719/7d7fc538/attachment.sig>
More information about the debhelper-devel
mailing list