diff --git a/island/actions/islandAction_init.py b/island/actions/islandAction_init.py index d12cd3f..2c96946 100644 --- a/island/actions/islandAction_init.py +++ b/island/actions/islandAction_init.py @@ -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 diff --git a/island/actions/islandAction_sync.py b/island/actions/islandAction_sync.py index 4a29fdd..e8d9a77 100644 --- a/island/actions/islandAction_sync.py +++ b/island/actions/islandAction_sync.py @@ -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 ... ")