From f82de9f5e2c603f4443af5a663c3649350a18e43 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Wed, 27 Feb 2013 13:25:52 +0100 Subject: [PATCH] Stop processing uploads to forbidden suites earlier. --- daklib/archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5