From b070077e40a2310f0477fa1b4c64efeefc107c87 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Tue, 31 Jul 2012 19:09:17 +0200 Subject: [PATCH] dak/admin.py: new suites need an archive --- dak/admin.py | 5 +++++ 1 file changed, 5 insertions(+) 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() -- 2.39.5