]> err.no Git - dak/commitdiff
Add src_formats by default
authorMark Hymers <mhy@debian.org>
Fri, 29 Jul 2011 22:17:20 +0000 (23:17 +0100)
committerMark Hymers <mhy@debian.org>
Fri, 29 Jul 2011 22:17:20 +0000 (23:17 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/admin.py

index 4e3dff26110d003f353c38f167bfef634c29a62d..5f0dcc9eeda8848c22ddb4b5536bd7bd647900e7 100755 (executable)
@@ -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: