X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fshow_new.py;h=ef4db31437bab060b3818d2eb61331fa67170e2b;hb=b29fd4bd82a1badd5087b66ae06a47513a83890f;hp=8405aeef9f0fe2391d9e969169b944db7abf179b;hpb=84fc8be4951132dde1d06bfb5ee8a22efaeab7ab;p=dak.git diff --git a/dak/show_new.py b/dak/show_new.py index 8405aeef..ef4db314 100755 --- a/dak/show_new.py +++ b/dak/show_new.py @@ -37,7 +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 +from daklib.dakmultiprocessing import Pool # Globals Cnf = None @@ -250,14 +250,16 @@ def main(): examine_package.use_html=1 - threadpool = ThreadPool() + #pool = Pool(processes=1) 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 - threadpool.queueTask(do_pkg, changes_file) - threadpool.joinAll() + #pool.apply_async(do_pkg, (changes_file,)) + do_pkg(changes_file) + #pool.close() + #pool.join() files = set(os.listdir(cnf["Show-New::HTMLPath"])) to_delete = filter(lambda x: x.endswith(".html"), files.difference(sources))