]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/checks.py
Reject arch:all binNMUs
[dak.git] / daklib / checks.py
index e17a191e39472b112e50f24a00442da161c65970..9916cc755fab492a35e7763692f1ccc6cdde416d 100644 (file)
@@ -725,6 +725,16 @@ class NoSourceOnlyCheck(Check):
 
         return True
 
+class ArchAllBinNMUCheck(Check):
+    """Check for arch:all binNMUs"""
+    def check(self, upload):
+        changes = upload.changes
+
+        if 'all' in changes.architectures and changes.changes.get('Binary-Only') == 'yes':
+            raise Reject('arch:all binNMUs are not allowed.')
+
+        return True
+
 class LintianCheck(Check):
     """Check package using lintian"""
     def check(self, upload):