ostbuild: Remove /var from components

We expect them to create on demand.
This commit is contained in:
Colin Walters committed 2012-05-18 16:30:45 -04:00
1 parent a3246d590e
commit ecfd9b2cf3
1 file changed
+6
@@ -188,6 +188,12 @@ class OstbuildCompileOne(builtins.Builtin):
shutil.rmtree(resultdir)
os.makedirs(resultdir)
# Remove /var from the install - components are required to
# auto-create these directories on demand.
varpath = os.path.join(tempdir, 'var')
if os.path.isdir(varpath):
shutil.rmtree(varpath)
# Move symbolic links for shared libraries as well
# as static libraries. And delete all .la files.
for libdirname in ['lib', 'usr/lib']: