[debhelper-devel] [debhelper] 03/04: Dh_Lib: Add a kill-switch for R³ (for -backports)

Niels Thykier nthykier at moszumanska.debian.org
Wed Oct 18 21:04:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch support-rrr
in repository debhelper.

commit e509e00d30854467412da4c0267c971f5433d3a1
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 71ba073..e5a9dbb 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 = (
@@ -1427,6 +1430,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'});
@@ -1444,6 +1448,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