summaryrefslogtreecommitdiff
path: root/ick2/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'ick2/actions.py')
-rw-r--r--ick2/actions.py8
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