[ostree/wip/ostbuild-v3] ostbuild: Remove /var from components
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree/wip/ostbuild-v3] ostbuild: Remove /var from components
- Date: Tue, 15 May 2012 15:30:53 +0000 (UTC)
commit 0efb4046778215c33e1549d5e3832035a055542e
Author: Colin Walters <walters verbum org>
Date: Tue May 15 08:54:44 2012 -0400
ostbuild: Remove /var from components
We expect them to create on demand.
src/ostbuild/pyostbuild/builtin_compile_one.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/ostbuild/pyostbuild/builtin_compile_one.py b/src/ostbuild/pyostbuild/builtin_compile_one.py
index af9104a..aa5fc84 100755
--- a/src/ostbuild/pyostbuild/builtin_compile_one.py
+++ b/src/ostbuild/pyostbuild/builtin_compile_one.py
@@ -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']:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]