summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ybd/deployment.py5
1 files changed, 5 insertions, 0 deletions
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']],