From 9ee235e509fcecda8e02c26d971c592adc403231 Mon Sep 17 00:00:00 2001 From: Valmik Jangla Date: Tue, 23 Aug 2016 13:40:34 +0530 Subject: [PATCH] [fix] install apps using apps.txt ordering --- bench/utils.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bench/utils.py b/bench/utils.py index f45ae58f..14e0c7b9 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -102,14 +102,11 @@ def clone_apps_from(bench_path, clone_from): install_app(app, bench_path) - apps = os.listdir(os.path.join(bench_path, 'apps')) - - # setup frappe first - setup_app('frappe') + with open(os.path.join(clone_from, 'sites', 'apps.txt'), 'r') as f: + apps = f.read().splitlines() for app in apps: - if app != 'frappe': - setup_app(app) + setup_app(app) def exec_cmd(cmd, cwd='.'): from .cli import from_command_line