Commit 196ecd7f authored by Martin Hamant's avatar Martin Hamant

cleanup

parent 37e4827c
......@@ -50,6 +50,7 @@ class gitlabGroupError(Exception):
def cacheGitlabGroup(namespace):
"""return True when the cache has been updated sucessfully"""
def doUpdate(namespace):
print('updating group cache')
cacheGroup.clear()
......@@ -91,7 +92,7 @@ def cacheGitlabGroup(namespace):
# cache is already populated
return True
else:
# another project : updated needed
# another project : update needed
return doUpdate(namespace)
else:
# cache miss this group, updating
......@@ -101,11 +102,7 @@ def cacheGitlabGroup(namespace):
def addProjectToGitlab(namespace, repoName, repoUrl):
""" add a mirror project to an *existing* group. """
""" the destination namespace should exists beforehand """
# cacheGitlabGroup(namespace)
# print(cacheGroup['meta'])
# print(cacheGroup[namespace]['projects'][33])
# exit()
print("invoke add project {}/{} ...".format(namespace, repoName))
# print("invoke add project {}/{} ...".format(namespace, repoName))
# processing only if the cache is populated with the group data
if cacheGitlabGroup(namespace):
......
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