]> git.ipfire.org Git - pakfire.git/blobdiff - python/pakfire/builder.py
Make sure the ccache directory is present.
[pakfire.git] / python / pakfire / builder.py
index b81d9aea9790368d2c24f9a28a3e44a3f4dab6a8..763d771ca626454ff331121040ced0c5d2c0dbfd 100644 (file)
@@ -451,6 +451,10 @@ class BuildEnviron(object):
 
                # If ccache support is requested, we bind mount the cache.
                if self.settings.get("enable_ccache"):
+                       # Create ccache cache directory if it does not exist.
+                       if not os.path.exists(CCACHE_CACHE_DIR):
+                               os.makedirs(CCACHE_CACHE_DIR)
+
                        mountpoints += [
                                (CCACHE_CACHE_DIR, "/var/cache/ccache", "bind", "bind"),
                        ]