diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-02-21 00:11:36 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-02-21 00:11:36 +0900 |
commit | ba1eef11760703d44836c77c7733627496f05063 (patch) | |
tree | 09634a796d75e8ac8c94f1eb6c3be157ccf3a439 /buildstream/buildelement.py | |
parent | e814a53375cbad0e33cabd57a388aed8df7ac101 (diff) | |
download | buildstream-ba1eef11760703d44836c77c7733627496f05063.tar.gz |
buildelement.py: Ensure build & install dirs exist
We were not creating the install directory, and it happened
that most elements dont require it already exist, untill
we met e2fsprogs.bst :)
Diffstat (limited to 'buildstream/buildelement.py')
-rw-r--r-- | buildstream/buildelement.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/buildstream/buildelement.py b/buildstream/buildelement.py index 56bdac01c..2027068fc 100644 --- a/buildstream/buildelement.py +++ b/buildstream/buildelement.py @@ -71,11 +71,13 @@ class BuildElement(Element): # Stage sources in /buildstream/build self.stage_sources(sandbox, '/buildstream/build') - # Create the build dir incase there is no sources staged - os.makedirs(os.path.join( - sandbox.executor.fs_root, - 'buildstream', - 'build'), exist_ok=True) + # Ensure builddir and installdir + os.makedirs(os.path.join(sandbox.executor.fs_root, + 'buildstream', + 'build'), exist_ok=True) + os.makedirs(os.path.join(sandbox.executor.fs_root, + 'buildstream', + 'install'), exist_ok=True) # And set the sandbox work directory too sandbox.set_cwd('/buildstream/build') |