diff options
author | Jürg Billeter <j@bitron.ch> | 2020-04-22 17:21:11 +0200 |
---|---|---|
committer | Abderrahim Kitouni <akitouni@gnome.org> | 2020-08-26 14:14:32 +0100 |
commit | 59d5e3b0794a95e35d8a6dd26585f92476458c00 (patch) | |
tree | 0cec6ecb26121df0ab9dffa2f8b377ce10afc802 | |
parent | a9ae5eab07b9f707356486a287daab6e07eff3f9 (diff) | |
download | buildstream-abderrahim/virtual-extract.tar.gz |
element.py: Create destination directory in stage_artifact()abderrahim/virtual-extract
-rw-r--r-- | buildstream/element.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index ca96be9b8..17c605728 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -670,9 +670,7 @@ class Element(Plugin): # Hard link it into the staging area # vbasedir = sandbox.get_virtual_directory() - vstagedir = vbasedir \ - if path is None \ - else vbasedir.descend(*path.lstrip(os.sep).split(os.sep)) + vstagedir = vbasedir if path is None else vbasedir.descend(*path.lstrip(os.sep).split(os.sep), create=True) split_filter = self.__split_filter_func(include, exclude, orphans) |