]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/checks.py: check for Section field in binary packages
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 2 Nov 2014 19:33:40 +0000 (20:33 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 2 Nov 2014 19:33:40 +0000 (20:33 +0100)
daklib/checks.py

index f4127808b5ac2a96baf903953d755c00ab4c1d8a..c5a3f35dc6cdad45e3dca0438f9017acfc081283 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))