-def queue_unembargo(u, summary, short_summary, session=None):
- return package_to_queue(u, summary, short_summary,
- get_policy_queue('disembargo'), chg, session,
- announce=None)
+def do_unembargo(u, summary, short_summary, chg, session=None):
+ polq=get_policy_queue('disembargo')
+ package_to_queue(u, summary, short_summary,
+ polq, chg, session,
+ announce=None)
+ for suite_name in u.pkg.changes["distribution"].keys():
+ suite = get_suite(suite_name, session)
+ for q in suite.copy_queues:
+ for f in u.pkg.files.keys():
+ copy(os.path.join(polq.path, f), q.path)