From: Ansgar Burchardt Date: Tue, 31 Jul 2012 17:09:17 +0000 (+0200) Subject: dak/admin.py: new suites need an archive X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=b070077e40a2310f0477fa1b4c64efeefc107c87;p=dak.git dak/admin.py: new suites need an archive --- diff --git a/dak/admin.py b/dak/admin.py index 23b4c2d8..378a878a 100755 --- a/dak/admin.py +++ b/dak/admin.py @@ -225,6 +225,11 @@ def __suite_add(d, args, addallarches=False): signingkey = get_field('signingkey') if signingkey is not None: suite.signingkeys = [signingkey.upper()] + archive_name = get_field('archive') + if archive_name is not None: + suite.archive = get_archive(archive_name, s) + else: + suite.archive = s.query(Archive).filter(~Archive.archive_name.in_(['build-queues', 'new', 'policy'])).one() suite.srcformats = s.query(SrcFormat).all() s.add(suite) s.flush()