From: Ansgar Burchardt Date: Wed, 27 Feb 2013 12:25:52 +0000 (+0100) Subject: Stop processing uploads to forbidden suites earlier. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f82de9f5e2c603f4443af5a663c3649350a18e43;p=dak Stop processing uploads to forbidden suites earlier. --- diff --git a/daklib/archive.py b/daklib/archive.py index 3a9fd5d3..ecd59324 100644 --- a/daklib/archive.py +++ b/daklib/archive.py @@ -718,7 +718,7 @@ class ArchiveUpload(object): elif rtype == "reject": rejected = fields[1] if suite_name == rejected: - self.reject_reasons.append('Uploads to {0} are not accepted.'.format(rejected)) + raise checks.Reject('Uploads to {0} are not accepted.'.format(rejected)) ## XXX: propup-version and map-unreleased not yet implemented return suite_name