From f1333752e7ffbbb3bbda0ce16c3ab1bbb4545f71 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sat, 11 Dec 2010 16:14:52 +0100 Subject: [PATCH] Ask the database for components Signed-off-by: Joerg Jaspert --- dak/generate_filelist.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dak/generate_filelist.py b/dak/generate_filelist.py index a2246f5c..a58fe7e2 100755 --- a/dak/generate_filelist.py +++ b/dak/generate_filelist.py @@ -196,9 +196,11 @@ def main(): suites = [suite.suite_name for suite in query_suites.all()] if not cnf.has_key('Filelist::Options::Suite'): cnf['Filelist::Options::Suite'] = ','.join(suites) - # we can ask the database for components if 'mixed' is gone + query_components = session.query(Component) + components = \ + [component.component_name for component in query_components.all()] if not cnf.has_key('Filelist::Options::Component'): - cnf['Filelist::Options::Component'] = 'main,contrib,non-free' + cnf['Filelist::Options::Component'] = ','.join(components) query_architectures = session.query(Architecture) architectures = \ [architecture.arch_string for architecture in query_architectures.all()] -- 2.39.5