diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-07-29 11:49:22 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-07-29 11:49:22 +0300 |
commit | 1232316c69efe1cabaef791f8a7b78f8891ee517 (patch) | |
tree | 56c56398028b89701c3cde4b1e6f9bebe897b6ed | |
parent | d0faacd326973c19903d5f82534cc221d111e623 (diff) | |
download | ick2-1232316c69efe1cabaef791f8a7b78f8891ee517.tar.gz |
Add: more build log output to git_mirror action, for debugging
-rw-r--r-- | ick2/actions.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ick2/actions.py b/ick2/actions.py index 3a1f80a..b21741e 100644 --- a/ick2/actions.py +++ b/ick2/actions.py @@ -489,7 +489,9 @@ class GitMirrorAction(Action): # pragma: no cover def git_mirror(self, env, sources, mirrors): if not os.path.exists(mirrors): + env.report(None, 'mkdir {}', mirrors) os.mkdir(mirrors) + checked = self.check_sources(sources) for name, url in checked: exit_code = self.mirror(env, mirrors, name, url) @@ -510,7 +512,13 @@ class GitMirrorAction(Action): # pragma: no cover return checked def mirror(self, env, mirrors, name, url): + env.report(None, 'git_mirror: mirrors: {}'.format(mirrors)) + env.report(None, 'git_mirror: name: {}'.format(name)) + env.report(None, 'git_mirror: url: {}'.format(url)) + dirname = os.path.join(mirrors, name) + env.report(None, 'git_mirror: dirname: {}'.format(dirname)) + if os.path.exists(dirname): argv = ['git', 'remote', 'update', '--prune'] cwd = dirname |