From b614ea659673e6ac2f4cbf46dbffa1a747ec2d68 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Wed, 29 Jan 2025 14:05:39 -0800 Subject: [PATCH] Installer: small fixes --- one_click.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/one_click.py b/one_click.py index 9105e057..effc7d43 100644 --- a/one_click.py +++ b/one_click.py @@ -367,6 +367,8 @@ def update_requirements(initial_installation=False, pull=True): if 'wheels_changed' in last_state or last_state.get('last_installed_commit') != current_commit: wheels_changed = True + else: + wheels_changed = True if pull: # Read .whl lines before pulling @@ -409,7 +411,7 @@ def update_requirements(initial_installation=False, pull=True): with open(state_file, 'w') as f: json.dump(current_state, f) - exit(1) + sys.exit(1) # Save current state current_state = {'last_installed_commit': current_commit}