From 1232316c69efe1cabaef791f8a7b78f8891ee517 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 29 Jul 2018 11:49:22 +0300 Subject: Add: more build log output to git_mirror action, for debugging --- ick2/actions.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.1