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

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=735db4a3722aad0233f77928e9e053c97da29445

commit 735db4a3722aad0233f77928e9e053c97da29445
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Dec 21 23:46:38 2021 +0100

    Dpkg::Control::FieldsCore: Accept Architecture as a debian/tests/control 
field
    
    Support for this got added in autopkgtest 5.15.
---
 scripts/Dpkg/Control/FieldsCore.pm | 2 +-
 scripts/t/Dpkg_Control_Fields.t    | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/Dpkg/Control/FieldsCore.pm 
b/scripts/Dpkg/Control/FieldsCore.pm
index 005a8225b..c93325882 100644
--- a/scripts/Dpkg/Control/FieldsCore.pm
+++ b/scripts/Dpkg/Control/FieldsCore.pm
@@ -67,7 +67,7 @@ use constant {
 our %FIELDS = (
     'architecture' => {
         name => 'Architecture',
-        allowed => (ALL_PKG | ALL_SRC | CTRL_FILE_BUILDINFO | 
CTRL_FILE_CHANGES) & (~CTRL_INFO_SRC),
+        allowed => (ALL_PKG | ALL_SRC | CTRL_FILE_BUILDINFO | 
CTRL_FILE_CHANGES | CTRL_TESTS) & (~CTRL_INFO_SRC),
         separator => FIELD_SEP_SPACE,
     },
     'architectures' => {
diff --git a/scripts/t/Dpkg_Control_Fields.t b/scripts/t/Dpkg_Control_Fields.t
index 481cc0958..a1e0e017d 100644
--- a/scripts/t/Dpkg_Control_Fields.t
+++ b/scripts/t/Dpkg_Control_Fields.t
@@ -342,6 +342,7 @@ my %fields = (
         unordered => 1,
         fields => [
             qw(
+                Architecture
                 Classes
                 Depends
                 Features

-- 
Dpkg.Org's dpkg

Reply via email to