]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/checks.py
Do not require arch:all packages in experimental uploads
[dak.git] / daklib / checks.py
index f4127808b5ac2a96baf903953d755c00ab4c1d8a..66f39ffba244ff24267d9f916f26043a85ded3ab 100644 (file)
@@ -300,7 +300,7 @@ class BinaryCheck(Check):
         fn = binary.hashed_file.filename
         control = binary.control
 
-        for field in ('Package', 'Architecture', 'Version', 'Description'):
+        for field in ('Package', 'Architecture', 'Version', 'Description', 'Section'):
             if field not in control:
                 raise Reject('{0}: Missing mandatory field {0}.'.format(fn, field))
 
@@ -684,6 +684,7 @@ class NoSourceOnlyCheck(Check):
 
         if not allow_no_arch_indep_uploads \
            and 'all' not in changes.architectures \
+           and 'experimental' not in changes.distributions \
            and changes.source.package_list.has_arch_indep_packages():
             raise Reject('Uploads not including architecture-independent packages are not allowed.')