from daklib.config import Config
from daklib import daklog
from daklib.changesutils import *
+from daklib.threadpool import ThreadPool
# Globals
Cnf = None
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))