mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
ostbuild: Remove /var from components
We expect them to create on demand.
This commit is contained in:
parent
a3246d590e
commit
ecfd9b2cf3
@ -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']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user