X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fchecks.py;fp=daklib%2Fchecks.py;h=9916cc755fab492a35e7763692f1ccc6cdde416d;hb=368b5f9e628e664fef3cfce060943a0e7d168c59;hp=e17a191e39472b112e50f24a00442da161c65970;hpb=a8e16e1d4e049ec21740ce664d7fb944c0035b96;p=dak.git diff --git a/daklib/checks.py b/daklib/checks.py index e17a191e..9916cc75 100644 --- a/daklib/checks.py +++ b/daklib/checks.py @@ -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):