mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 07:28:25 +00:00
change apps json schema to list
This commit is contained in:
parent
1fe6e83c51
commit
27fabddab0
@ -49,11 +49,11 @@ def pull_all_apps(bench='.'):
|
||||
exec_cmd("git pull {rebase} upstream HEAD".format(rebase=rebase), cwd=app_dir)
|
||||
|
||||
def install_apps_from_path(path, bench='.'):
|
||||
apps = get_apps_dict(path)
|
||||
for app, url in apps.items():
|
||||
get_app(app, url, bench=bench)
|
||||
apps = get_apps_json(path)
|
||||
for app in apps:
|
||||
get_app(app['name'], app['url'], bench=bench)
|
||||
|
||||
def get_apps_dict(path):
|
||||
def get_apps_json(path):
|
||||
if path.startswith('http'):
|
||||
r = requests.get(path)
|
||||
return r.json()
|
||||
|
Loading…
x
Reference in New Issue
Block a user