[ostree: 17/19] ostbuild: Remove /var from components
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree: 17/19] ostbuild: Remove /var from components
- Date: Fri, 18 May 2012 21:11:25 +0000 (UTC)
commit ecfd9b2cf360d1c2840b1343e39f6ab617e5f98d
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]