[debhelper-devel] [debhelper] 05/09: Dh_Lib: Add a kill-switch for R³ (for -backports)
Niels Thykier
nthykier at moszumanska.debian.org
Sat Oct 21 18:06:40 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 c82e713e06d0bd91e74df37112d715a6bd710a74
Author: Niels Thykier <niels at thykier.net>
Date: Wed Oct 18 20:38:51 2017 +0000
Dh_Lib: Add a kill-switch for R³ (for -backports)
Signed-off-by: Niels Thykier <niels at thykier.net>
---
lib/Debian/Debhelper/Dh_Lib.pm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/Debian/Debhelper/Dh_Lib.pm b/lib/Debian/Debhelper/Dh_Lib.pm
index 78fb3be..7aac27a 100644
--- a/lib/Debian/Debhelper/Dh_Lib.pm
+++ b/lib/Debian/Debhelper/Dh_Lib.pm
@@ -23,6 +23,9 @@ use constant {
'XARGS_INSERT_PARAMS_HERE' => \'<INSERT-HERE>', #'# Hi emacs.
# Magic value for debhelper tools to request "current version"
'DH_BUILTIN_VERSION' => \'<DH_LIB_VERSION>', #'# Hi emacs.
+
+ # Kill-switch for R³ (for backports)
+ 'DH_ENABLE_RRR_SUPPORT' => 1,
};
my %NAMED_COMPAT_LEVELS = (
@@ -1428,6 +1431,7 @@ sub getpackages {
# - Returns true otherwise (i.e. keyword is in R^3 or R^3 is 'binary-targets')
sub should_use_root {
my ($keyword) = @_;
+ return 1 if not DH_ENABLE_RRR_SUPPORT;
getpackages() if not %rrr;
return 0 if exists($rrr{'no'});
@@ -1445,6 +1449,8 @@ sub gain_root_cmd {
}
sub root_requirements {
+ return 'legacy-root' if not DH_ENABLE_RRR_SUPPORT;
+
getpackages() if not %rrr;
return 'none' if exists($rrr{'no'});
--
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