X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fchecks.py;h=9131bbadbe220e574b966dd099200329f1dd77c3;hb=23a382800c81534682ba64c75e976830c24b4f71;hp=adee6241cc6ef9a83cfa1c823984d0a392621eb9;hpb=2904852db6f165ffa30df5839d8c4f75f1a0fd0e;p=dak.git diff --git a/daklib/checks.py b/daklib/checks.py index adee6241..9131bbad 100644 --- a/daklib/checks.py +++ b/daklib/checks.py @@ -175,9 +175,6 @@ class BinaryCheck(Check): for bn in binary_names: if bn not in upload.changes.binary_names: raise Reject('Package {0} is not mentioned in Binary field in changes'.format(bn)) - for bn in upload.changes.binary_names: - if bn not in binary_names: - raise Reject('Binary field in changes has {0}, but was not found in upload'.format(bn)) return True @@ -387,7 +384,7 @@ class ACLCheck(Check): raise Reject('Unknown source_acl access level {0} for fingerprint {1}'.format(source_acl.access_level, fingerprint.fingerprint)) bin_architectures = set(upload.changes.architectures) - bin_architectures.remove('source') + bin_architectures.discard('source') binary_acl = fingerprint.binary_acl if binary_acl is None: if len(bin_architectures) > 0: