Skip to content
Snippets Groups Projects
Commit 37112728 authored by Filippo Cremonese's avatar Filippo Cremonese
Browse files

Add --no-config option to update command

parent a830533c
No related branches found
No related tags found
No related merge requests found
......@@ -10,15 +10,17 @@ from ..model.configuration import Configuration
def install_subcommand(sub_argparser):
cmd_parser = sub_argparser.add_parser("update", handler=handle_update, help="Update components")
cmd_parser.add_argument("--no-config", action="store_true", help="Don't pull orchestra config")
def handle_update(args, config: Configuration):
failed_pulls = []
logger.info("Updating orchestra configuration")
result = git_pull(config.orchestra_dotdir)
if result.returncode:
failed_pulls.append(f"orchestra configuration ({config.orchestra_dotdir})")
if args.no_config:
logger.info("Updating orchestra configuration")
result = git_pull(config.orchestra_dotdir)
if result.returncode:
failed_pulls.append(f"orchestra configuration ({config.orchestra_dotdir})")
logger.info("Updating binary archives")
os.makedirs(config.binary_archives_dir, exist_ok=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment