From 91b5a6f93c80cdf3f5cb719a074ccdce9b9cb204 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 19 Feb 2009 23:10:56 +0100 Subject: [PATCH] Fixes Signed-off-by: Joerg Jaspert --- dak/dakdb/update4.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dak/dakdb/update4.py b/dak/dakdb/update4.py index 487b4792..88f8f867 100755 --- a/dak/dakdb/update4.py +++ b/dak/dakdb/update4.py @@ -27,17 +27,18 @@ Database Update Script - Get suite_architectures table use sane values import psycopg2 from daklib.dak_exceptions import DBUpdateError +from daklib.utils import get_conf ################################################################################ suites = {} #: Cache of existing suites archs = {} #: Cache of existing architectures - def do_update(self): """ Execute the DB update """ print "Lets make suite_architecture table use sane values" + Cnf = get_conf() query = "INSERT into suite_architectures (suite, architecture) VALUES (%s, %s)" #: Update query try: @@ -59,7 +60,7 @@ def do_update(self): architectures = Cnf.SubTree("Suite::" + suite).ValueList("Architectures") suite = suite.lower() for arch in architectures: - c.execute(query, suites[suite], archs[arch]) + c.execute(query, [suites[suite], archs[arch]]) self.db.commit() -- 2.39.2