From b7ee7f84c38061e926d46cfe1eb4c6faf2f50d1d Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 16 Feb 2018 11:21:08 +0000 Subject: Remove .build and .inst directories from deployment --- ybd/deployment.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ybd/deployment.py b/ybd/deployment.py index a13d936..6afafe1 100644 --- a/ybd/deployment.py +++ b/ybd/deployment.py @@ -17,6 +17,7 @@ import os from subprocess import call import json +import shutil import app import cache import sandbox @@ -48,6 +49,10 @@ def deploy_system(system_spec, parent_location=''): deploy_defaults = system_spec.get('deploy-defaults') with sandbox.setup(system): + # Clean up directories not required for deployment. + shutil.rmtree(system['checkout']) + shutil.rmtree(system['install']) + app.log(system, 'Extracting system artifact into', system['sandbox']) with open(cache.get_cache(system), 'r') as artifact: call(['tar', 'x', '--directory', system['sandbox']], -- cgit v1.2.1