From: Ansgar Burchardt Date: Sun, 10 Jun 2012 14:20:57 +0000 (+0200) Subject: dominate: convert to str X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=1f2b6a84e56af6dc38bb8939e96645b8931c1173;p=dak.git dominate: convert to str apt_pkg.Configuration does only allow str values; trying to assign a unicode object raises a TypeError. --- diff --git a/dak/dominate.py b/dak/dominate.py index be8c5220..a6be1b03 100755 --- a/dak/dominate.py +++ b/dak/dominate.py @@ -134,8 +134,9 @@ def main(): usage() if 'Suite' not in Options: query_suites = DBConn().session().query(Suite) - suites = [suite.suite_name for suite in query_suites.all()] - cnf['Obsolete::Options::Suite'] = ','.join(suites) + suites = [suite.suite_name for suite in query_suites] + cnf['Obsolete::Options::Suite'] = str(','.join(suites)) + Logger = daklog.Logger("dominate") session = DBConn().session() for suite_name in utils.split_args(Options['Suite']):