lib/oe/utils: Make multiprocess_exec() return anything
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Thu, 28 Aug 2014 15:11:03 +0000 (17:11 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Aug 2014 22:44:37 +0000 (23:44 +0100)
The variable "results" was accidentally used for multiple different
things at the same time, which unintentionally discarded anything that
was supposed to be returned from the function...

(From OE-Core rev: abf4eb613eba0892a5f240de7aa3a9a1b2879354)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/utils.py

index 92e21a4..3544256 100644 (file)
@@ -167,11 +167,11 @@ def multiprocess_exec(commands, function):
     imap = pool.imap(function, commands)
 
     try:
-        results = list(imap)
+        res = list(imap)
         pool.close()
         pool.join()
         results = []
-        for result in results:
+        for result in res:
             if result is not None:
                 results.append(result)
         return results