From: Mike O'Connor Date: Sat, 9 Jan 2010 20:12:16 +0000 (-0500) Subject: really don't use DBConn() in an update X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=a4d0d5dc90348e09db42dafb4e4e6bd15ec1d202;p=dak.git really don't use DBConn() in an update Signed-off-by: Mike O'Connor --- diff --git a/dak/dakdb/update28.py b/dak/dakdb/update28.py index 39a26801..f1c8b2fa 100755 --- a/dak/dakdb/update28.py +++ b/dak/dakdb/update28.py @@ -32,7 +32,6 @@ import psycopg2 import time from daklib.dak_exceptions import DBUpdateError from daklib.config import Config -from daklib.dakdb import DBConn ################################################################################ @@ -144,10 +143,8 @@ def do_update(self): for suite in [i.lower() for i in suites]: c.execute("SELECT id FROM suite WHERE suite_name ='%s'" % suite ) - rows = c.fetchall() - - - suite_id = DBConn().get_suite_id(suite) + suiterow = c.fetchall() + suite_id=suiterow[0] arch_list = arches(c, suite_id) arch_list = arches(c, suite_id)