mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 15:38: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)
|
exec_cmd("git pull {rebase} upstream HEAD".format(rebase=rebase), cwd=app_dir)
|
||||||
|
|
||||||
def install_apps_from_path(path, bench='.'):
|
def install_apps_from_path(path, bench='.'):
|
||||||
apps = get_apps_dict(path)
|
apps = get_apps_json(path)
|
||||||
for app, url in apps.items():
|
for app in apps:
|
||||||
get_app(app, url, bench=bench)
|
get_app(app['name'], app['url'], bench=bench)
|
||||||
|
|
||||||
def get_apps_dict(path):
|
def get_apps_json(path):
|
||||||
if path.startswith('http'):
|
if path.startswith('http'):
|
||||||
r = requests.get(path)
|
r = requests.get(path)
|
||||||
return r.json()
|
return r.json()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user