summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2014-08-28 17:11:03 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-29 23:44:37 +0100
commit3b47aa11c261b83987149712e029e8db5989b574 (patch)
treeddb50fd37387e6d1cc98d349639a25bac5a9b6e1 /meta/lib/oe
parent91375aff9972781c8b5f029bd7c747ed5c250909 (diff)
downloadpoky-3b47aa11c261b83987149712e029e8db5989b574.tar.gz
lib/oe/utils: Make multiprocess_exec() return anything
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>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 92e21a4e0e..35442568e2 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -167,11 +167,11 @@ def multiprocess_exec(commands, function):
167 imap = pool.imap(function, commands) 167 imap = pool.imap(function, commands)
168 168
169 try: 169 try:
170 results = list(imap) 170 res = list(imap)
171 pool.close() 171 pool.close()
172 pool.join() 172 pool.join()
173 results = [] 173 results = []
174 for result in results: 174 for result in res:
175 if result is not None: 175 if result is not None:
176 results.append(result) 176 results.append(result)
177 return results 177 return results