2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-10 09:02:10 +00:00

Merge pull request #307 from vjFaLk/clone-fix

[fix] install apps using apps.txt ordering
This commit is contained in:
Rushabh Mehta 2016-08-23 14:45:59 +05:30 committed by GitHub
commit 86afa275ad

View File

@ -102,13 +102,10 @@ def clone_apps_from(bench_path, clone_from):
install_app(app, bench_path) install_app(app, bench_path)
apps = os.listdir(os.path.join(bench_path, 'apps')) with open(os.path.join(clone_from, 'sites', 'apps.txt'), 'r') as f:
apps = f.read().splitlines()
# setup frappe first
setup_app('frappe')
for app in apps: for app in apps:
if app != 'frappe':
setup_app(app) setup_app(app)
def exec_cmd(cmd, cwd='.'): def exec_cmd(cmd, cwd='.'):