###############################################################################
-def action(u, dbc):
+def action(u):
cnf = Config()
holding = Holding()
session = DBConn().session()
# so, we skip the policy queue, otherwise we go there.
divert = package_to_suite(u, suite.suite_name, session=session)
if divert:
- print "%s for %s\n%s%s" % ( su.policy_queue.queue_name.upper(),
+ print "%s for %s\n%s%s" % ( suite.policy_queue.queue_name.upper(),
", ".join(u.pkg.changes["distribution"].keys()),
pi, summary)
queuekey = "P"
prompt = "[P]olicy, Skip, Quit ?"
- policyqueue = su.policy_queue
+ policyqueue = suite.policy_queue
if Options["Automatic"]:
answer = 'P'
break
multivalues[key] = self.changes[key].keys()
session.execute(
- """INSERT INTO known_changes
+ """INSERT INTO changes
(changesname, seen, source, binaries, architecture, version,
distribution, urgency, maintainer, fingerprint, changedby, date)
VALUES (:changesfile,:filetime,:source,:binary, :architecture,
################################################################################
def package_to_suite(u, suite_name, session):
- if not u.pkg.changes["distribution"].has_key(suite):
+ if not u.pkg.changes["distribution"].has_key(suite_name):
return False
ret = True
if not u.pkg.changes["architecture"].has_key("source"):
q = session.query(SrcAssociation.sa_id)
- q = q.join(Suite).filter_by(suite_name=suite)
+ q = q.join(Suite).filter_by(suite_name=suite_name)
q = q.join(DBSource).filter_by(source=u.pkg.changes['source'])
q = q.filter_by(version=u.pkg.changes['version']).limit(1)