From 120ef0a610a1805872f46f4978bf54943a51da69 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Mon, 28 Mar 2011 01:36:36 +0100 Subject: [PATCH] Fix up pool usage Signed-off-by: Mark Hymers --- dak/generate_releases.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dak/generate_releases.py b/dak/generate_releases.py index 6c4fed0d..8befbc99 100755 --- a/dak/generate_releases.py +++ b/dak/generate_releases.py @@ -330,16 +330,17 @@ def main (): print "Processing %s" % s.suite_name Logger.log(['Processing release file for Suite: %s' % (s.suite_name)]) - pool.apply_async(generate_helper, (s.suite_id, ), callback=get_result) + pool.apply_async(generate_helper, (s.suite_id, )) # No more work will be added to our pool, close it and then wait for all to finish pool.close() pool.join() - retcode = p.overall_status() + retcode = pool.overall_status() if retcode > 0: - Logger.log(['Release file generation broken: %s' % (p.results)]) + # TODO: CENTRAL FUNCTION FOR THIS / IMPROVE LOGGING + Logger.log(['Release file generation broken: %s' % (','.join([str(x[1]) for x in pool.results]))]) Logger.close() -- 2.39.5