From: Michael Tremer Date: Mon, 3 Oct 2011 21:24:34 +0000 (+0200) Subject: Make sure the ccache directory is present. X-Git-Tag: 0.9.11~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=046278b2a3562ce7dc7585d8501e90ef682c90db;p=pakfire.git Make sure the ccache directory is present. --- diff --git a/python/pakfire/builder.py b/python/pakfire/builder.py index b81d9aea9..763d771ca 100644 --- a/python/pakfire/builder.py +++ b/python/pakfire/builder.py @@ -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"), ]