From: Torsten Werner Date: Sun, 16 Jan 2011 20:38:39 +0000 (+0100) Subject: Unicode fixes in generate-filelist X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=775fb9c4b2b92565e28adfaa5011af2f465a1dc5;p=dak Unicode fixes in generate-filelist Signed-off-by: Torsten Werner --- diff --git a/dak/generate_filelist.py b/dak/generate_filelist.py index a58fe7e2..a4aba326 100755 --- a/dak/generate_filelist.py +++ b/dak/generate_filelist.py @@ -193,19 +193,19 @@ def main(): ('i', "incremental", "Filelist::Options::Incremental")] session = DBConn().session() query_suites = session.query(Suite) - suites = [suite.suite_name for suite in query_suites.all()] + suites = [suite.suite_name for suite in query_suites] if not cnf.has_key('Filelist::Options::Suite'): - cnf['Filelist::Options::Suite'] = ','.join(suites) + cnf['Filelist::Options::Suite'] = ','.join(suites).encode() query_components = session.query(Component) components = \ - [component.component_name for component in query_components.all()] + [component.component_name for component in query_components] if not cnf.has_key('Filelist::Options::Component'): - cnf['Filelist::Options::Component'] = ','.join(components) + cnf['Filelist::Options::Component'] = ','.join(components).encode() query_architectures = session.query(Architecture) architectures = \ - [architecture.arch_string for architecture in query_architectures.all()] + [architecture.arch_string for architecture in query_architectures] if not cnf.has_key('Filelist::Options::Architecture'): - cnf['Filelist::Options::Architecture'] = ','.join(architectures) + cnf['Filelist::Options::Architecture'] = ','.join(architectures).encode() cnf['Filelist::Options::Help'] = '' cnf['Filelist::Options::Incremental'] = '' apt_pkg.ParseCommandLine(cnf.Cnf, Arguments, sys.argv)