From 459910369e7772e8352d62782a7d354645cafa7b Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 25 Jun 2019 14:03:21 +0200 Subject: [PATCH] [DEV] remove update of manifect when this is not needed --- island/actions/islandAction_commit.py | 6 ------ island/actions/islandAction_deliver-push.py | 6 ------ island/actions/islandAction_fetch.py | 7 ------- island/actions/islandAction_push.py | 6 ------ island/actions/islandAction_status.py | 3 +++ 5 files changed, 3 insertions(+), 25 deletions(-) diff --git a/island/actions/islandAction_commit.py b/island/actions/islandAction_commit.py index c755328..d50ebee 100644 --- a/island/actions/islandAction_commit.py +++ b/island/actions/islandAction_commit.py @@ -53,12 +53,6 @@ def execute(arguments): configuration = config.Config() - if env.get_fetch_manifest() == True: - debug.info("update manifest : '" + str(env.get_island_path_manifest()) + "'") - # update manifest - cmd = "git fetch --all" - multiprocess.run_command_direct(cmd, cwd=env.get_island_path_manifest()) - file_source_manifest = os.path.join(env.get_island_path_manifest(), configuration.get_manifest_name()) if os.path.exists(file_source_manifest) == False: debug.error("Missing manifest file : '" + str(file_source_manifest) + "'") diff --git a/island/actions/islandAction_deliver-push.py b/island/actions/islandAction_deliver-push.py index 227dec5..445d55b 100644 --- a/island/actions/islandAction_deliver-push.py +++ b/island/actions/islandAction_deliver-push.py @@ -42,12 +42,6 @@ def execute(arguments): configuration = config.Config() - if env.get_fetch_manifest() == True: - debug.info("update manifest : '" + str(env.get_island_path_manifest()) + "'") - # update manifest - cmd = "git fetch --all" - multiprocess.run_command_direct(cmd, cwd=env.get_island_path_manifest()) - file_source_manifest = os.path.join(env.get_island_path_manifest(), configuration.get_manifest_name()) if os.path.exists(file_source_manifest) == False: debug.error("Missing manifest file : '" + str(file_source_manifest) + "'") diff --git a/island/actions/islandAction_fetch.py b/island/actions/islandAction_fetch.py index 2b8d412..dda06b3 100644 --- a/island/actions/islandAction_fetch.py +++ b/island/actions/islandAction_fetch.py @@ -41,13 +41,6 @@ def execute(arguments): configuration = config.Config() - - if env.get_fetch_manifest() == True: - debug.info("update manifest : '" + str(env.get_island_path_manifest()) + "'") - # update manifest - cmd = "git fetch --all" - multiprocess.run_command_direct(cmd, cwd=env.get_island_path_manifest()) - file_source_manifest = os.path.join(env.get_island_path_manifest(), configuration.get_manifest_name()) if os.path.exists(file_source_manifest) == False: debug.error("Missing manifest file : '" + str(file_source_manifest) + "'") diff --git a/island/actions/islandAction_push.py b/island/actions/islandAction_push.py index b9ee617..02b4909 100644 --- a/island/actions/islandAction_push.py +++ b/island/actions/islandAction_push.py @@ -46,12 +46,6 @@ def execute(arguments): configuration = config.Config() - if env.get_fetch_manifest() == True: - debug.info("update manifest : '" + str(env.get_island_path_manifest()) + "'") - # update manifest - cmd = "git fetch --all" - multiprocess.run_command_direct(cmd, cwd=env.get_island_path_manifest()) - file_source_manifest = os.path.join(env.get_island_path_manifest(), configuration.get_manifest_name()) if os.path.exists(file_source_manifest) == False: debug.error("Missing manifest file : '" + str(file_source_manifest) + "'") diff --git a/island/actions/islandAction_status.py b/island/actions/islandAction_status.py index 65fd8ad..d8a870c 100644 --- a/island/actions/islandAction_status.py +++ b/island/actions/islandAction_status.py @@ -53,6 +53,9 @@ def execute(arguments): debug.error("Missing manifest file : '" + str(file_source_manifest) + "'") mani = manifest.Manifest(file_source_manifest) + is_modify_manifest = commands.check_repository_is_modify(env.get_island_path_manifest()) + if is_modify_manifest == True: + debug.info("!!!!!!!!!!!! MANIFEST is modify !!!!!!!!") all_project = mani.get_all_configs() debug.info("status of: " + str(len(all_project)) + " projects")