diff options
-rw-r--r-- | mesonbuild/wrap/wrap.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index 08da319..aeb3add 100644 --- a/mesonbuild/wrap/wrap.py +++ b/mesonbuild/wrap/wrap.py @@ -556,8 +556,7 @@ class Resolver: mlog.log('Using', mlog.bold(self.packagename), what, 'from cache.') return cache_path - if not os.path.isdir(self.cachedir): - os.mkdir(self.cachedir) + os.makedirs(self.cachedir, exist_ok=True) self.download(what, cache_path) return cache_path else: |