From d2c137e3f9de671121ae9bc216a1dc1a86cdbcaa Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Fri, 29 Jul 2011 23:17:20 +0100 Subject: [PATCH] Add src_formats by default Signed-off-by: Mark Hymers --- dak/admin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dak/admin.py b/dak/admin.py index 4e3dff26..5f0dcc9e 100755 --- a/dak/admin.py +++ b/dak/admin.py @@ -226,6 +226,12 @@ def __suite_add(d, args, addallarches=False): suite.signingkeys = [signingkey.upper()] s.add(suite) s.flush() + for sf in s.query(SrcFormat).all(): + ssf = SuiteSrcFormat() + ssf.suite = suite + ssf.src_format = sf + s.add(ssf) + s.flush() except IntegrityError, e: die("E: Integrity error adding suite %s (it probably already exists)" % suite_name) except SQLAlchemyError, e: -- 2.39.5