From df26f2d2249c90f77b993deee8d00bfcf025009e Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Mon, 9 Jul 2012 10:00:52 -0600 Subject: [PATCH] daklib/checks.py: allow DMs to upload to all suites DMs may upload to all suites, but only the highest version currently in unstable, experimental or *-backports will be considered for DM-U-A. --- daklib/checks.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/daklib/checks.py b/daklib/checks.py index 9131bbad..f064a525 100644 --- a/daklib/checks.py +++ b/daklib/checks.py @@ -315,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 -- 2.39.5