]> err.no Git - dak/commitdiff
use central function instead of reimplementing
authorMark Hymers <mhy@debian.org>
Sun, 1 Nov 2009 09:55:44 +0000 (09:55 +0000)
committerMark Hymers <mhy@debian.org>
Sun, 1 Nov 2009 09:55:44 +0000 (09:55 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/process_upload.py

index ddf9b1c070e3ee0a3690d79a5c25f84804a6b5a4..98c05a5a73b252caf223aa043b17e7ace0dfee3a 100755 (executable)
@@ -291,9 +291,7 @@ def action(u, session):
     elif answer == 'P':
         if not chg:
             chg = u.pkg.add_known_changes(holding.holding_dir, session)
-        u.move_to_queue(policyqueue)
-        chg.in_queue_id = policyqueue.policy_queue_id
-        session.add(chg)
+        package_to_queue(u, summary, short_summary, policy_queue, chg, session)
         session.commit()
         u.remove()
     elif answer == queuekey: