summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Control
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2017-09-17 12:18:15 +0200
committerGuillem Jover <guillem@debian.org>2017-09-24 21:03:10 +0200
commitfca1bfe8406898105d1d724fb808f0cbcf985ae4 (patch)
tree7fc20ba945977bb370d3762f21c84fa1830ee93d /scripts/Dpkg/Control
parentb3608a01a8ac1416f0620bdf03d497c5b761b244 (diff)
downloaddpkg-fca1bfe8406898105d1d724fb808f0cbcf985ae4.tar.gz
dpkg-buildpackage: Add support for rootless builds
Implement the rootless-builds specification, by honoring the Rules-Requires-Root (R³) field.
Diffstat (limited to 'scripts/Dpkg/Control')
-rw-r--r--scripts/Dpkg/Control/FieldsCore.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/Dpkg/Control/FieldsCore.pm b/scripts/Dpkg/Control/FieldsCore.pm
index f5c38d635..8f5d7f34a 100644
--- a/scripts/Dpkg/Control/FieldsCore.pm
+++ b/scripts/Dpkg/Control/FieldsCore.pm
@@ -416,6 +416,11 @@ our %FIELDS = (
allowed => CTRL_TESTS,
separator => FIELD_SEP_SPACE,
},
+ 'rules-requires-root' => {
+ name => 'Rules-Requires-Root',
+ allowed => CTRL_INFO_SRC,
+ separator => FIELD_SEP_SPACE,
+ },
'section' => {
name => 'Section',
allowed => CTRL_INFO_SRC | CTRL_INDEX_SRC | ALL_PKG,