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:
parent
35504f81b3
commit
7f374887f4
@ -550,7 +550,7 @@ def install_app(
|
|||||||
if os.path.exists(os.path.join(app_path, "package.json")):
|
if os.path.exists(os.path.join(app_path, "package.json")):
|
||||||
bench.run("yarn install", cwd=app_path)
|
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:
|
if not skip_assets:
|
||||||
build_assets(bench_path=bench_path, app=app)
|
build_assets(bench_path=bench_path, app=app)
|
||||||
|
@ -170,7 +170,7 @@ class BenchApps(MutableSequence):
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
self.states = {}
|
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):
|
if self.apps and not os.path.exists(self.states_path):
|
||||||
# idx according to apps listed in apps.txt (backwards compatibility)
|
# idx according to apps listed in apps.txt (backwards compatibility)
|
||||||
# Keeping frappe as the first app.
|
# Keeping frappe as the first app.
|
||||||
@ -203,7 +203,7 @@ class BenchApps(MutableSequence):
|
|||||||
if app_name and app_name not in self.states:
|
if app_name and app_name not in self.states:
|
||||||
version = get_current_version(app_name, self.bench.name)
|
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:
|
if not branch:
|
||||||
branch = (
|
branch = (
|
||||||
subprocess
|
subprocess
|
||||||
|
Loading…
Reference in New Issue
Block a user