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":
(package, version, architecture) = split_line
- pkid = get_id(package, version, architecture)
+ pkid = get_id(package, version, architecture, session)
if not pkid:
continue
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:
# Safety/Sanity check
# XXX: This should be stored in the database
- if action == "set" and suite_name not in ["testing", "etch-m68k"]:
+ if action == "set" and suite_name not in ["testing"]:
utils.fubar("Will not reset suite %s" % (suite_name))
if action == "list":