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

fix: fixed states sync

This commit is contained in:
Aradhya 2022-05-09 19:42:57 +05:30
parent 35504f81b3
commit 7f374887f4
2 changed files with 3 additions and 3 deletions

View File

@ -550,7 +550,7 @@ def install_app(
if os.path.exists(os.path.join(app_path, "package.json")):
bench.run("yarn install", cwd=app_path)
bench.apps.sync(app, required=resolution, branch=tag)
bench.apps.sync(app_name=app, required=resolution, branch=tag, app_dir=app_path)
if not skip_assets:
build_assets(bench_path=bench_path, app=app)

View File

@ -170,7 +170,7 @@ class BenchApps(MutableSequence):
except FileNotFoundError:
self.states = {}
def update_apps_states(self, app_name: Union[str, None] = None, branch: Union[str, None] = None, required:List = []):
def update_apps_states(self, app_dir, app_name: Union[str, None] = None, branch: Union[str, None] = None, required:List = []):
if self.apps and not os.path.exists(self.states_path):
# idx according to apps listed in apps.txt (backwards compatibility)
# Keeping frappe as the first app.
@ -203,7 +203,7 @@ class BenchApps(MutableSequence):
if app_name and app_name not in self.states:
version = get_current_version(app_name, self.bench.name)
app_dir = os.path.join(self.apps_path, app_name)
app_dir = os.path.join(self.apps_path, app_dir)
if not branch:
branch = (
subprocess