diff options
author | Simon Glass <sjg@chromium.org> | 2016-09-18 16:48:31 -0600 |
---|---|---|
committer | sjg <sjg@chromium.org> | 2016-10-09 09:30:32 -0600 |
commit | 21f0eb332faddeb88a0f3e9788f83b6f9c22071c (patch) | |
tree | 6bd4847f654e949940e4cbcf30b5db45d7b20cea /tools | |
parent | 8b4919ed29f51075e85a7358db75b66a226d5b1e (diff) | |
download | u-boot-imx-21f0eb332faddeb88a0f3e9788f83b6f9c22071c.zip u-boot-imx-21f0eb332faddeb88a0f3e9788f83b6f9c22071c.tar.gz u-boot-imx-21f0eb332faddeb88a0f3e9788f83b6f9c22071c.tar.bz2 |
buildman: Tidy up the 'cloning' message
On a machine with a lot of CPUs this prints a lot of useless lines of the
form:
Cloning repo for thread <n>
Adjust the output so that these all appear on one line, and disappear when
the cloning is complete.
Note: This cloning is actually unnecessary and very wasteful on disk space
(about 3.5GB each time). It would be better to create symlinks.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/buildman/builder.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py index 8ec3551..4a24f74 100644 --- a/tools/buildman/builder.py +++ b/tools/buildman/builder.py @@ -1366,8 +1366,10 @@ class Builder: if os.path.exists(git_dir): gitutil.Fetch(git_dir, thread_dir) else: - Print('Cloning repo for thread %d' % thread_num) + Print('\rCloning repo for thread %d' % thread_num, + newline=False) gitutil.Clone(src_dir, thread_dir) + Print('\r%s\r' % (' ' * 30), newline=False) def _PrepareWorkingSpace(self, max_threads, setup_git): """Prepare the working directory for use. |