mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 00:21:23 +00:00
Merge pull request #1336 from gavindsouza/reinstall-app-fix
fix: get-app on existing apps
This commit is contained in:
commit
41b9deb66a
@ -209,6 +209,9 @@ class App(AppMeta):
|
|||||||
shutil.move(active_app_path, archived_app_path)
|
shutil.move(active_app_path, archived_app_path)
|
||||||
log(f"App moved from {active_app_path} to {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")
|
@step(title="Installing App {repo}", success="App {repo} Installed")
|
||||||
def install(
|
def install(
|
||||||
self,
|
self,
|
||||||
@ -419,7 +422,7 @@ def get_app(
|
|||||||
"Do you want to continue and overwrite it?"
|
"Do you want to continue and overwrite it?"
|
||||||
)
|
)
|
||||||
):
|
):
|
||||||
shutil.rmtree(cloned_path)
|
app.remove()
|
||||||
to_clone = True
|
to_clone = True
|
||||||
|
|
||||||
if to_clone:
|
if to_clone:
|
||||||
|
Loading…
Reference in New Issue
Block a user