diff --git a/src/west/app/project.py b/src/west/app/project.py index 95c6af4..4638b19 100644 --- a/src/west/app/project.py +++ b/src/west/app/project.py @@ -859,7 +859,7 @@ class Update(_ProjectCommand): @staticmethod def _update_concurrent_thread(args): - index, project, self, logdir = args + project, self, logdir = args if logdir: saved_stdout = os.dup(sys.stdout.fileno()) saved_stderr = os.dup(sys.stderr.fileno()) @@ -873,9 +873,9 @@ class Update(_ProjectCommand): try: self.update(project) - return (index, True) + return True except subprocess.CalledProcessError: - return (index, False) + return False finally: if logdir: sys.stdout.flush() @@ -903,12 +903,13 @@ class Update(_ProjectCommand): log.dbg(f"log directory: {logdir_name}") args = [] - for index, project in enumerate(projects): - args.append((index, project, self, logdir_name)) + for project in projects: + args.append((project, self, logdir_name)) with multiprocessing.Pool(self.args.jobs) as p: - for index, successful in p.imap_unordered( - self._update_concurrent_thread, args): + for index, successful in enumerate( + p.imap_unordered(self._update_concurrent_thread, + args)): project = projects[index] if logdir: