]> git.decadent.org.uk Git - dak.git/commitdiff
Fix up pool usage
authorMark Hymers <mhy@debian.org>
Mon, 28 Mar 2011 00:36:36 +0000 (01:36 +0100)
committerMark Hymers <mhy@debian.org>
Mon, 28 Mar 2011 00:36:36 +0000 (01:36 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/generate_releases.py

index 6c4fed0dcf64c2b84bfb6983cb14556fd858225d..8befbc995a1bd601409ca475c77ff201a40b1657 100755 (executable)
@@ -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()