2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-27 22:39:03 +00:00

Merge pull request #1336 from gavindsouza/reinstall-app-fix

fix: get-app on existing apps
This commit is contained in:
gavin 2022-07-27 14:34:45 +05:30 committed by GitHub
commit 41b9deb66a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,6 +209,9 @@ class App(AppMeta):
shutil.move(active_app_path, archived_app_path)
log(f"App moved from {active_app_path} to {archived_app_path}")
self.from_apps = False
self.on_disk = False
@step(title="Installing App {repo}", success="App {repo} Installed")
def install(
self,
@ -419,7 +422,7 @@ def get_app(
"Do you want to continue and overwrite it?"
)
):
shutil.rmtree(cloned_path)
app.remove()
to_clone = True
if to_clone: