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

Merge pull request #1287 from alyf-de/fix-required-apps

fix: support single required app
This commit is contained in:
gavin 2022-03-24 09:57:14 +05:30 committed by GitHub
commit 2bd3cfae07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -282,6 +282,10 @@ def setup_app_dependencies(
lines = [x for x in f.read().split("\n") if x.strip().startswith("required_apps")]
if lines:
required_apps = eval(lines[0].strip("required_apps").strip().lstrip("=").strip())
if isinstance(required_apps, str):
required_apps = [required_apps]
# TODO: when the time comes, add version check here
for app in required_apps:
if app not in Bench(bench_path).apps: