diff options
Diffstat (limited to 'meta/lib/oe/utils.py')
-rw-r--r-- | meta/lib/oe/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index c9c7a47041..d272dd2b8d 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py | |||
@@ -316,7 +316,9 @@ def multiprocess_launch_mp(target, items, max_process, extraargs=None): | |||
316 | items = list(items) | 316 | items = list(items) |
317 | while (items and not errors) or launched: | 317 | while (items and not errors) or launched: |
318 | if not errors and items and len(launched) < max_process: | 318 | if not errors and items and len(launched) < max_process: |
319 | args = (items.pop(),) | 319 | args = items.pop() |
320 | if not type(args) is tuple: | ||
321 | args = (args,) | ||
320 | if extraargs is not None: | 322 | if extraargs is not None: |
321 | args = args + extraargs | 323 | args = args + extraargs |
322 | p = ProcessLaunch(target=target, args=args) | 324 | p = ProcessLaunch(target=target, args=args) |