Procházet zdrojové kódy

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 před 12 roky
rodič
revize
3e625372f4
2 změnil soubory, kde provedl 6 přidání a 1 odebrání
  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.
   * Allow updating checksums in Dpkg::Checksums without erroring out.
   * Add shell hooks support to dpkg-buildpackage, based on the debuild
   * Add shell hooks support to dpkg-buildpackage, based on the debuild
     implementation in devscripts 2.13.9. Closes: #476221
     implementation in devscripts 2.13.9. Closes: #476221
+  * Add support for Testsuite source field.
 
 
   [ Updated dpkg translations ]
   [ Updated dpkg translations ]
   * Swedish (Peter Krefting).
   * Swedish (Peter Krefting).

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

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