[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] show-new: multithreading support



Signed-off-by: Torsten Werner <twerner@debian.org>
---
 dak/show_new.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dak/show_new.py b/dak/show_new.py
index 183c1bb..9cb0890 100755
--- a/dak/show_new.py
+++ b/dak/show_new.py
@@ -37,6 +37,7 @@ from daklib.regexes import re_source_ext
 from daklib.config import Config
 from daklib import daklog
 from daklib.changesutils import *
+from daklib.threadpool import ThreadPool
 
 # Globals
 Cnf = None
@@ -243,12 +244,14 @@ def main():
 
     examine_package.use_html=1
 
+    threadpool = ThreadPool()
     for changes_file in changes_files:
         changes_file = utils.validate_changes_file_arg(changes_file, 0)
         if not changes_file:
             continue
         print "\n" + changes_file
-        do_pkg (changes_file)
+        threadpool.queueTask(do_pkg, changes_file)
+    threadpool.joinAll()
 
     files = set(os.listdir(cnf["Show-New::HTMLPath"]))
     to_delete = filter(lambda x: x.endswith(".html"), files.difference(sources))
-- 
1.5.6.5



Reply to: