瀏覽代碼

Dpkg::Control::FieldsCore: Add support for Testsuite source field

This field is used to specify what type of test suite is present
in the source package. The values within are comma separated.
Guillem Jover 12 年之前
父節點
當前提交
3e625372f4
共有 2 個文件被更改,包括 6 次插入 和 1 次删除
  1. 1 0
      debian/changelog
  2. 5 1
      scripts/Dpkg/Control/FieldsCore.pm

+ 1 - 0
debian/changelog

@@ -31,6 +31,7 @@ dpkg (1.17.6) UNRELEASED; urgency=low
   * Allow updating checksums in Dpkg::Checksums without erroring out.
   * Add shell hooks support to dpkg-buildpackage, based on the debuild
     implementation in devscripts 2.13.9. Closes: #476221
+  * Add support for Testsuite source field.
 
   [ Updated dpkg translations ]
   * Swedish (Peter Krefting).

+ 5 - 1
scripts/Dpkg/Control/FieldsCore.pm

@@ -277,6 +277,10 @@ our %FIELDS = (
     'Task' => {
         allowed => ALL_PKG,
     },
+    'Testsuite' => {
+        allowed => ALL_SRC,
+        separator => FIELD_SEP_COMMA,
+    },
     'Triggers-Awaited' => {
         allowed => CTRL_FILE_STATUS,
         separator => FIELD_SEP_SPACE,
@@ -350,7 +354,7 @@ our %FIELD_ORDER = (
         qw(Format Source Binary Architecture Version Origin Maintainer
         Uploaders Homepage Standards-Version Vcs-Browser
         Vcs-Arch Vcs-Bzr Vcs-Cvs Vcs-Darcs Vcs-Git Vcs-Hg Vcs-Mtn
-        Vcs-Svn), &field_list_src_dep(), qw(Package-List),
+        Vcs-Svn Testsuite), &field_list_src_dep(), qw(Package-List),
         @checksum_fields, qw(Files)
     ],
     CTRL_FILE_CHANGES() => [