summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Sateler <fsateler@debian.org>2017-10-04 15:43:27 -0300
committerNiels Thykier <niels@thykier.net>2017-10-13 18:08:29 +0000
commit41d255ab83579bf3acae3c1ac48cff3e87dbeeda (patch)
treea6e463238a9bf2fb8c0c1aef39af8afb28323bf3
parent0131460b04e2b0211004a76410b24bc9fc9fd178 (diff)
downloaddebhelper-41d255ab83579bf3acae3c1ac48cff3e87dbeeda.tar.gz
Error out in dh_systemd_* if run with compat >= 11
-rwxr-xr-xdh_systemd_enable4
-rwxr-xr-xdh_systemd_start4
2 files changed, 8 insertions, 0 deletions
diff --git a/dh_systemd_enable b/dh_systemd_enable
index ef91ef28..a05aab1e 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 8e2b777d..0c3a51d8 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 => {