[DEBUG] remove error code

This commit is contained in:
Edouard DUPIN 2019-08-02 00:03:21 +02:00
parent 8c3c73f2ff
commit 31f2815230
2 changed files with 10 additions and 8 deletions

View File

@ -85,13 +85,16 @@ def execute(_arguments):
conf.store()
debug.info("Clone the manifest")
commands.clone(env.get_island_path_manifest(), address_manifest, branch_name=branch):
ret_values = commands.clone(env.get_island_path_manifest(), address_manifest, branch_name=branch)
if ret == False:
debug.info("'" + ret + "'")
if ret_values == False:
debug.info("'" + str(ret_values) + "'")
debug.error("Init does not work")
return False
return True
debug.info("Init done correctly ...")
return None

View File

@ -99,11 +99,10 @@ def execute(_arguments):
else:
address_manifest += "/"
address_manifest += elem.name
+ " --branch " + elem.branch + " --origin " + elem.select_remote["name"] + " " + git_repo_path
debug.info("clone the repo")
ret = commands.clone(git_repo_path, address_manifest, branch_name=elem.branch, origin=elem.select_remote["name"]):
if ret != "" \
and ret != False:
ret = commands.clone(git_repo_path, address_manifest, branch_name=elem.branch, origin=elem.select_remote["name"])
if ret[0] != "" \
and ret[0] != False:
# all is good, ready to get the system work corectly
debug.info("'" + str(ret) + "'")
debug.error("Clone repository does not work ... ")