]> git.decadent.org.uk Git - dak.git/commitdiff
Add missing for loop.
authorChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 14:55:35 +0000 (14:55 +0000)
committerChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 14:55:35 +0000 (14:55 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
dak/dakdb/update15.py

index dd0f9433595b487e58986b81e79f69bc712566af..10812226d519c581c9fe8d78983e0ede28268399 100644 (file)
@@ -64,7 +64,8 @@ def do_update(self):
         c.execute("SELECT id FROM src_format WHERE format_name = '1.0'")
         formats = c.fetchall()
         for s in suites:
-            c.execute("INSERT INTO suite_src_formats (suite, src_format) VALUES(%s, %s)", (s[0], f[0]))
+            for f in formats:
+                c.execute("INSERT INTO suite_src_formats (suite, src_format) VALUES(%s, %s)", (s[0], f[0]))
 
         print "Authorize all other formats on tpu, unstable & experimental by default"
         c.execute("SELECT id FROM suite WHERE suite_name IN ('testing-proposed-updates', 'unstable', 'experimental')")