]> git.ipfire.org Git - pakfire.git/commitdiff
Make sure the ccache directory is present.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Oct 2011 21:24:34 +0000 (23:24 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Oct 2011 21:24:34 +0000 (23:24 +0200)
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"),
                        ]