X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dak%2Fcontrol_suite.py;h=7a979fa45ed1dffcbd25d46d64afe4048d8ec4ff;hb=3d8f1f7a48b565b6d6a4b36c827e256586558e40;hp=a2cb9f375976af04cc246ab22c46c6b13e64dd89;hpb=ea2484f6cbfe606f31d0f033e49190486f81cd2d;p=dak.git diff --git a/dak/control_suite.py b/dak/control_suite.py index a2cb9f37..7a979fa4 100755 --- a/dak/control_suite.py +++ b/dak/control_suite.py @@ -142,7 +142,7 @@ def set_suite(file, suite, session): for key in desired.keys(): if not current.has_key(key): (package, version, architecture) = key.split() - pkid = get_id (package, version, architecture) + pkid = get_id (package, version, architecture, session) if not pkid: continue if architecture == "source": @@ -175,7 +175,7 @@ def process_file(file, suite, action, session): (package, version, architecture) = split_line - pkid = get_id(package, version, architecture) + pkid = get_id(package, version, architecture, session) if not pkid: continue @@ -223,7 +223,7 @@ def process_file(file, suite, action, session): continue else: session.execute("""INSERT INTO bin_associations (suite, bin) - VALUES (%s, %s)""", + VALUES (:suiteid, :pkid)""", {'suiteid': suite_id, 'pkid': pkid}) elif action == "remove": if association_id == None: