Extension install improvements

This commit is contained in:
oobabooga 2023-09-25 20:27:06 -07:00
parent 7f1460af29
commit 814520fed1
2 changed files with 2 additions and 5 deletions

View file

@ -34,8 +34,7 @@ def clone_or_pull_repository(github_url):
yield f"Cloning {github_url}..."
clone_output = subprocess.check_output(["git", "clone", github_url, repo_path], stderr=subprocess.STDOUT)
new_extensions.add(repo_name)
logger.info(f"The extension {repo_name} has been downloaded. Please close the the web UI and launch it again to be able to load it.")
yield "Done."
yield(f"The extension `{repo_name}` has been downloaded.\n\nPlease close the the web UI completely and launch it again to be able to load it.")
return clone_output.decode()
except subprocess.CalledProcessError as e:
return str(e)