summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Olmos <jorge.olmos@flexvdi.com>2021-04-28 18:18:00 +0200
committerJorge Olmos <jorge.olmos@flexvdi.com>2021-04-28 18:18:09 +0200
commit7b8fa582aa2db7d17395b2d9deb02cf5f16ad78a (patch)
tree256073d54fb14bf9bb24d7c57aa1beec8425bb48
parenta22194b14dbc51be17dd0574b7a3ab8065645bfc (diff)
source: Fix extract in git sources
Use os.makedirs which can create several path levels at once, instead of failing. For instance Cmake sources are extracted to ARCH/PACKAGE-VERSION/_builddir/ and two directories have to be created. All other source types are already using os.makedirs. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/700>
-rw-r--r--cerbero/build/source.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cerbero/build/source.py b/cerbero/build/source.py
index ab66bfd2..930177c7 100644
--- a/cerbero/build/source.py
+++ b/cerbero/build/source.py
@@ -380,7 +380,7 @@ class Git (GitCache):
pass
shutil.rmtree(self.build_dir)
if not os.path.exists(self.build_dir):
- os.mkdir(self.build_dir)
+ os.makedirs(self.build_dir)
# checkout the current version
await git.local_checkout(self.build_dir, self.repo_dir, self.commit, logfile=get_logfile(self))