X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fchecks.py;h=9916cc755fab492a35e7763692f1ccc6cdde416d;hb=391f5ec09a119131dc846b796ca791f4cecc69e4;hp=e17a191e39472b112e50f24a00442da161c65970;hpb=6b05407646140b4ce2b16463bb96bf471dd5e646;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):