Update progress before running the hook.

This will let progress show the name of the hook while it's running.

Change-Id: I14ef2a9b5fd2bc4d8d778f5402f78a5827ffbb08
Reviewed-on: https://chromium-review.googlesource.com/731469
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
changes/69/731469/2
Daniel Cheng 8 years ago committed by Commit Bot
parent a0c5f0850a
commit 93c5d606cb

@ -1027,9 +1027,9 @@ class Dependency(gclient_utils.WorkItem, DependencySettings):
if progress:
progress._total = len(hooks)
for hook in hooks:
hook.run(self.root.root_dir)
if progress:
progress.update(extra=hook.name or '')
hook.run(self.root.root_dir)
if progress:
progress.end()

Loading…
Cancel
Save