From: Mike O'Connor Date: Sat, 9 Jan 2010 20:11:31 +0000 (-0500) Subject: don't use DBConn() in an update X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=0e38a664493870d8c764ae02f50693b6c7ee0e1d;p=dak.git 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 1e32f2dd..39a26801 100755 --- a/dak/dakdb/update28.py +++ b/dak/dakdb/update28.py @@ -32,6 +32,7 @@ import psycopg2 import time from daklib.dak_exceptions import DBUpdateError from daklib.config import Config +from daklib.dakdb import DBConn ################################################################################ @@ -141,6 +142,11 @@ def do_update(self): suites = _suites() 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) arch_list = arches(c, suite_id) arch_list = arches(c, suite_id)