From b3636c12176d0f4df4c27242c488d4a97f45a468 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 20 Apr 2024 00:59:42 +0900 Subject: [PATCH] fix: cm-cli fix command --- cm-cli.py | 4 ++++ glob/manager_core.py | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cm-cli.py b/cm-cli.py index 2015317f..36077c01 100644 --- a/cm-cli.py +++ b/cm-cli.py @@ -178,6 +178,7 @@ if not (len(sys.argv) == 2 and sys.argv[1] == 'save-snapshot') and len(sys.argv) f" save-snapshot\n" f" restore-snapshot \n" f" cli-only-mode [enable|disable]\n" + f" restore-dependencies -- NOT YET\n" f" clear\n") exit(-1) @@ -456,6 +457,9 @@ elif op == 'save-snapshot': elif op == 'restore-snapshot': restore_snapshot(sys.argv[2]) +elif op == 'restore-dependencies': + print(f"TODO: NOT YET IMPLEMENTED") + elif op == 'clear': cancel() diff --git a/glob/manager_core.py b/glob/manager_core.py index 1a9d3565..8b9f25ad 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -21,7 +21,7 @@ sys.path.append(glob_path) import cm_global from manager_util import * -version = [2, 20] +version = [2, 20, 1] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) @@ -632,7 +632,7 @@ async def get_data_by_mode(mode, filename, channel_url=None): return json_obj -def gitclone_fix(files): +def gitclone_fix(files, instant_execution=False): print(f"Try fixing: {files}") for url in files: if not is_valid_url(url): @@ -648,7 +648,7 @@ def gitclone_fix(files): if os.path.exists(repo_path+'.disabled'): repo_path = repo_path+'.disabled' - if not execute_install_script(url, repo_path): + if not execute_install_script(url, repo_path, instant_execution=instant_execution): return False except Exception as e: