]> err.no Git - dak/commitdiff
dak init-db: properly initialize suite_architectures
authorRaphael Hertzog <hertzog@debian.org>
Sun, 1 Mar 2009 00:25:57 +0000 (01:25 +0100)
committerRaphael Hertzog <hertzog@debian.org>
Sun, 1 Mar 2009 20:42:29 +0000 (21:42 +0100)
Using database.get_suite_architectures() here makes no sense since that
function uses the table that we're trying to fill. Instead we should
assume that all suites support all architectures. And it's up to the
admin to adjust the set afterwards if needed.

Signed-off-by: Raphael Hertzog <hertzog@debian.org>
dak/init_db.py

index e1f1bced854ddcece7528db09d150c0892d759f5..fcd108a4ad10cd82f68014ca375c438f71392cdf 100755 (executable)
@@ -131,7 +131,7 @@ def do_suite():
         projectB.query("INSERT INTO suite (suite_name, version, origin, "
                        "description) VALUES ('%s', %s, %s, %s)"
                        % (suite.lower(), version, origin, description))
-        for architecture in database.get_suite_architectures(suite):
+        for architecture in Cnf.SubTree("Architectures").List():
             architecture_id = database.get_architecture_id (architecture)
             if architecture_id < 0:
                 utils.fubar("architecture '%s' not found in architecture"