Commit 93c5d606 authored by Daniel Cheng's avatar Daniel Cheng Committed by Commit Bot

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/731469Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
Reviewed-by: 's avatarNico Weber <thakis@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
parent a0c5f085
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment