]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/checks.py
LOCAL: Remove replay check
[dak.git] / daklib / checks.py
index e17a191e39472b112e50f24a00442da161c65970..79871621b003c2149b3dbee4cd1ff9344eba06e0 100644 (file)
@@ -128,7 +128,7 @@ class SignatureAndHashesCheck(Check):
         changes = upload.changes
         if not changes.valid_signature:
             raise Reject("Signature for .changes not valid.")
-        self.check_replay(upload)
+        #self.check_replay(upload)
         self._check_hashes(upload, changes.filename, changes.files.itervalues())
 
         source = None
@@ -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):