From a3b859bf50eb13ef24d82db47410fb4d63988331 Mon Sep 17 00:00:00 2001 From: gavin Date: Thu, 19 May 2022 12:58:24 +0530 Subject: [PATCH] fix(remove-app): Use App.name instead of App.repo for consistent App name --- bench/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/app.py b/bench/app.py index 815f4b1d..5b3f05a7 100755 --- a/bench/app.py +++ b/bench/app.py @@ -180,7 +180,7 @@ class App(AppMeta): @step(title="Archiving App {repo}", success="App {repo} Archived") def remove(self): - active_app_path = os.path.join("apps", self.repo) + active_app_path = os.path.join("apps", self.name) archived_path = os.path.join("archived", "apps") archived_name = get_available_folder_name(f"{self.repo}-{date.today()}", archived_path) archived_app_path = os.path.join(archived_path, archived_name) @@ -224,7 +224,7 @@ class App(AppMeta): @step(title="Uninstalling App {repo}", success="App {repo} Uninstalled") def uninstall(self): - self.bench.run(f"{self.bench.python} -m pip uninstall -y {self.repo}") + self.bench.run(f"{self.bench.python} -m pip uninstall -y {self.name}") def _get_dependencies(self): from bench.utils.app import get_required_deps, required_apps_from_hooks