From: Mark Hymers Date: Mon, 28 Mar 2011 00:36:36 +0000 (+0100) Subject: Fix up pool usage X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=120ef0a610a1805872f46f4978bf54943a51da69;p=dak Fix up pool usage Signed-off-by: Mark Hymers --- 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()