diff options
author | Keavon Chambers <keavon@keavon.com> | 2022-11-19 10:34:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-19 10:34:31 -0800 |
commit | 2f90496b19cd9c512633742db97b072a7075f017 (patch) | |
tree | 60d2dddd69172d9b5cf58c8da2bd64c61132f4fa /modules/ui_extensions.py | |
parent | a258fd60dbe2d68325339405a2aa72816d06d2fd (diff) | |
parent | 47a44c7e421b98ca07e92dbf88769b04c9e28f86 (diff) |
Merge branch 'master' into cors-regex
Diffstat (limited to 'modules/ui_extensions.py')
-rw-r--r-- | modules/ui_extensions.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/ui_extensions.py b/modules/ui_extensions.py index 02ab9643..030f011e 100644 --- a/modules/ui_extensions.py +++ b/modules/ui_extensions.py @@ -36,9 +36,9 @@ def apply_and_restart(disable_list, update_list): continue
try:
- ext.pull()
+ ext.fetch_and_reset_hard()
except Exception:
- print(f"Error pulling updates for {ext.name}:", file=sys.stderr)
+ print(f"Error getting updates for {ext.name}:", file=sys.stderr)
print(traceback.format_exc(), file=sys.stderr)
shared.opts.disabled_extensions = disabled
@@ -134,6 +134,9 @@ def install_extension_from_url(dirname, url): os.rename(tmpdir, target_dir)
+ import launch
+ launch.run_extension_installer(target_dir)
+
extensions.list_extensions()
return [extension_table(), html.escape(f"Installed into {target_dir}. Use Installed tab to restart.")]
finally:
|