diff --git a/bench/app.py b/bench/app.py index 8b165b2b..1ae32e1f 100755 --- a/bench/app.py +++ b/bench/app.py @@ -187,9 +187,10 @@ def install_app(app, bench_path=".", verbose=False, no_cache=False, postprocess= add_to_appstxt(app, bench_path=bench_path) + if not skip_assets: + build_assets(bench_path=bench_path, app=app) + if postprocess: - if not skip_assets: - build_assets(bench_path=bench_path, app=app) conf = get_config(bench_path=bench_path) if conf.get('restart_supervisor_on_update'): diff --git a/bench/utils.py b/bench/utils.py index d460f37c..37d3e770 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -285,7 +285,7 @@ def clone_apps_from(bench_path, clone_from, update_app=True): subprocess.check_output(['git', 'reset', '--hard'], cwd=app_path) subprocess.check_output(['git', 'pull', '--rebase', remote, branch], cwd=app_path) - install_app(app, bench_path) + install_app(app, bench_path, postprocess=False) with open(os.path.join(clone_from, 'sites', 'apps.txt'), 'r') as f: apps = f.read().splitlines()