From 0e38a664493870d8c764ae02f50693b6c7ee0e1d Mon Sep 17 00:00:00 2001 From: Mike O'Connor Date: Sat, 9 Jan 2010 15:11:31 -0500 Subject: [PATCH] don't use DBConn() in an update Signed-off-by: Mike O'Connor --- dak/dakdb/update28.py | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.39.5