[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master 01/10] don't use DBConn() in an update



Signed-off-by: Mike O'Connor <stew@vireo.org>
---
 dak/dakdb/update28.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dak/dakdb/update28.py b/dak/dakdb/update28.py
index 1e32f2d..39a2680 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)
-- 
1.6.5



Reply to: