Commit 7b8fa582 authored by Jorge Olmos's avatar Jorge Olmos
Browse files

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: <!700>
parent a22194b1
...@@ -380,7 +380,7 @@ class Git (GitCache): ...@@ -380,7 +380,7 @@ class Git (GitCache):
pass pass
shutil.rmtree(self.build_dir) shutil.rmtree(self.build_dir)
if not os.path.exists(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 # checkout the current version
await git.local_checkout(self.build_dir, self.repo_dir, self.commit, logfile=get_logfile(self)) await git.local_checkout(self.build_dir, self.repo_dir, self.commit, logfile=get_logfile(self))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment