From bbca3e9fab11491f071d7e5b9ef27d9d9b32c75c Mon Sep 17 00:00:00 2001 From: Aradhya Date: Sun, 20 Mar 2022 22:15:41 +0530 Subject: [PATCH] feat: mimicking get-app behaviour when app is already installed --- bench/app.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bench/app.py b/bench/app.py index d7889a69..78244347 100755 --- a/bench/app.py +++ b/bench/app.py @@ -460,7 +460,13 @@ def install_resolved_deps( fg="green" if is_compatible else "red", ) 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)