2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-16 01:57:08 +00:00

feat: mimicking get-app behaviour when app is already installed

This commit is contained in:
Aradhya 2022-03-20 22:15:41 +05:30
parent ad000f1be7
commit bbca3e9fab

View File

@ -460,7 +460,13 @@ def install_resolved_deps(
fg="green" if is_compatible else "red", fg="green" if is_compatible else "red",
) )
app.update_app_state() app.update_app_state()
continue if click.confirm(
f"Do you wish to clone and install the already installed {prefix}ompatible app"
):
click.secho(f"Removing installed app {app.name}", fg="yellow")
shutil.rmtree(path_to_app)
else:
continue
app.install_resolved_apps(skip_assets=skip_assets, verbose=verbose) app.install_resolved_apps(skip_assets=skip_assets, verbose=verbose)