[debhelper-devel] [debhelper] 04/21: Error out in dh_systemd_* if run with compat >= 11
Niels Thykier
nthykier at moszumanska.debian.org
Fri Oct 13 18:27:20 UTC 2017
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository debhelper.
commit 41d255ab83579bf3acae3c1ac48cff3e87dbeeda
Author: Felipe Sateler <fsateler at debian.org>
Date: Wed Oct 4 15:43:27 2017 -0300
Error out in dh_systemd_* if run with compat >= 11
---
dh_systemd_enable | 4 ++++
dh_systemd_start | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/dh_systemd_enable b/dh_systemd_enable
index ef91ef2..a05aab1 100755
--- a/dh_systemd_enable
+++ b/dh_systemd_enable
@@ -114,6 +114,10 @@ when you are calling B<dh_systemd_enable> manually.
=cut
+if (not compat(10)) {
+ error("dh_systemd_enable is no longer used in compat >= 11, please use dh_installsystemd instead");
+}
+
init(options => {
"no-enable" => \$dh{NO_ENABLE},
});
diff --git a/dh_systemd_start b/dh_systemd_start
index 8e2b777..0c3a51d 100755
--- a/dh_systemd_start
+++ b/dh_systemd_start
@@ -79,6 +79,10 @@ B<dh_systemd_start> manually.
=cut
+if (not compat(10)) {
+ error("dh_systemd_start is no longer used in compat >= 11, please use dh_installsystemd instead");
+}
+
$dh{RESTART_AFTER_UPGRADE} = 1 if not compat(9);
init(options => {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git
More information about the debhelper-devel
mailing list