From 046278b2a3562ce7dc7585d8501e90ef682c90db Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 3 Oct 2011 23:24:34 +0200 Subject: [PATCH] Make sure the ccache directory is present. --- python/pakfire/builder.py | 4 ++++ 1 file changed, 4 insertions(+) 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"), ] -- 2.39.5