]> err.no Git - dak/commitdiff
dak/show_new.py: set examine_package.use_html before creating worker pool
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 6 Jan 2013 12:48:07 +0000 (13:48 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 6 Jan 2013 12:49:40 +0000 (13:49 +0100)
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

index 89d2e82c98b080e11eba9063c27c5f899cbdbc96..488005636e09c9ef17f597091b1ae440a620db1b 100755 (executable)
@@ -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()