From 20181b6201b07b4b590280fcf9adea4f62ed8396 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 6 Jan 2013 13:48:07 +0100 Subject: [PATCH] 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. --- dak/show_new.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() -- 2.39.5