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>
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"