From: Mark Hymers Date: Fri, 29 Jul 2011 22:17:20 +0000 (+0100) Subject: Add src_formats by default X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2c137e3f9de671121ae9bc216a1dc1a86cdbcaa;p=dak Add src_formats by default Signed-off-by: Mark Hymers --- 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: