From: Ansgar Burchardt Date: Sun, 6 Jan 2013 12:48:07 +0000 (+0100) Subject: dak/show_new.py: set examine_package.use_html before creating worker pool X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20181b6201b07b4b590280fcf9adea4f62ed8396;p=dak dak/show_new.py: set examine_package.use_html before creating worker pool We want examine_package.use_html to be set everywhere. So we have to change it before we create the worker pool. This was broken by 24cb4fe2729e5805e8a9d81149dce947787ee20d where the worker pool was setup earlier. --- diff --git a/dak/show_new.py b/dak/show_new.py index 89d2e82c..48800563 100755 --- a/dak/show_new.py +++ b/dak/show_new.py @@ -249,14 +249,13 @@ def init(session): ################################################################################ def main(): + examine_package.use_html = True pool = DakProcessPool(processes=5) session = DBConn().session() upload_ids = [ u.id for u in init(session) ] session.close() - examine_package.use_html=1 - p = pool.map_async(do_pkg, upload_ids) pool.close()