From 4d2f98c0f0a97922be4ba270e0bf8a0f29996808 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Tue, 24 Feb 2009 15:54:53 +0000 Subject: [PATCH] use database to generate suite_architectures list Signed-off-by: Mark Hymers --- dak/generate_releases.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dak/generate_releases.py b/dak/generate_releases.py index 1c258bd5..4dc9d444 100755 --- a/dak/generate_releases.py +++ b/dak/generate_releases.py @@ -26,6 +26,7 @@ import sys, os, stat, time, pg import gzip, bz2 import apt_pkg from daklib import utils +from daklib import database from daklib.dak_exceptions import * ################################################################################ @@ -176,6 +177,10 @@ def main (): if qs[0][0] != "-": version = qs[0][0] if qs[0][1]: description = qs[0][1] + architectures = database.get_suite_architectures(suite) + if architectures == None: + architectures = [] + if SuiteBlock.has_key("NotAutomatic"): notautomatic = "yes" else: @@ -221,7 +226,7 @@ def main (): if notautomatic != "": out.write("NotAutomatic: %s\n" % (notautomatic)) - out.write("Architectures: %s\n" % (" ".join(filter(utils.real_arch, SuiteBlock.ValueList("Architectures"))))) + out.write("Architectures: %s\n" % (" ".join(filter(utils.real_arch, architectures)))) if components: out.write("Components: %s\n" % (" ".join(components))) -- 2.39.5