mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
91375aff99
commit
3b47aa11c2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user