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
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):