X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fchecks.py;h=f064a52501d43a273c9bae97aa654f3916056da2;hb=6db70697649dd1a30d085d78643e1d6e9f3b8d5b;hp=209a0945c14ef950953bab4ca9f4337d8593a08d;hpb=a396b3f63909176bc36af01f525669e8201ad36d;p=dak.git diff --git a/daklib/checks.py b/daklib/checks.py index 209a0945..f064a525 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 @@ -318,15 +315,12 @@ class ACLCheck(Check): if 'source' not in upload.changes.architectures: raise Reject('DM uploads must include source') - distributions = upload.changes.distributions - for dist in distributions: - if dist not in ('unstable', 'experimental', 'squeeze-backports'): - raise Reject("Uploading to {0} is not allowed for DMs.".format(dist)) for f in upload.changes.files.itervalues(): if f.section == 'byhand' or f.section[:4] == "raw-": raise Reject("Uploading byhand packages is not allowed for DMs.") # Reject NEW packages + distributions = upload.changes.distributions assert len(distributions) == 1 suite = session.query(Suite).filter_by(suite_name=distributions[0]).one() overridesuite = suite