From 3b47aa11c261b83987149712e029e8db5989b574 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Thu, 28 Aug 2014 17:11:03 +0200 Subject: 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 Signed-off-by: Richard Purdie --- meta/lib/oe/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/lib/oe') 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): 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 -- cgit v1.2.3-54-g00ecf