From 0262c823195e0e3334db1a554c7062e94ea01c62 Mon Sep 17 00:00:00 2001 From: Raphael Hertzog Date: Sun, 1 Mar 2009 01:25:57 +0100 Subject: [PATCH] dak init-db: properly initialize suite_architectures 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 --- dak/init_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dak/init_db.py b/dak/init_db.py index e1f1bced..fcd108a4 100755 --- a/dak/init_db.py +++ b/dak/init_db.py @@ -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" -- 2.39.5