From: Mark Hymers Date: Sat, 31 Oct 2009 21:41:33 +0000 (+0000) Subject: in_queue is the object, _id the id X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=530836c7ddde37ceb39eda3e440b6156ef364da2;p=dak in_queue is the object, _id the id Signed-off-by: Mark Hymers --- diff --git a/dak/process_upload.py b/dak/process_upload.py index e48b54e2..ddf9b1c0 100755 --- a/dak/process_upload.py +++ b/dak/process_upload.py @@ -292,7 +292,7 @@ def action(u, session): if not chg: chg = u.pkg.add_known_changes(holding.holding_dir, session) u.move_to_queue(policyqueue) - chg.in_queue = policyqueue.policy_queue_id + chg.in_queue_id = policyqueue.policy_queue_id session.add(chg) session.commit() u.remove() diff --git a/daklib/queue_install.py b/daklib/queue_install.py index c048f9ef..3283e1ef 100644 --- a/daklib/queue_install.py +++ b/daklib/queue_install.py @@ -61,7 +61,7 @@ def package_to_queue(u, summary, short_summary, queue, chg, session, announce=No u.logger.log(["Moving to %s" % queue.queue_name, u.pkg.changes_file]) u.move_to_queue(queue) - chg.in_queue = queue.policy_queue_id + chg.in_queue_id = queue.policy_queue_id session.add(chg) session.commit() @@ -229,7 +229,7 @@ def acknowledge_new(u, summary, short_summary, chg, session): q = get_policy_queue('new', session) u.move_to_queue(q) - chg.in_queue = q.policy_queue_id + chg.in_queue_id = q.policy_queue_id session.add(chg) session.commit()