From afb75a67b14b1ec58fb8ce57854b180328f8090a Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 14 Oct 2018 00:29:02 +0200 Subject: [PATCH] Ensure cache directory for `CacheStoreDatabase` exists. --- Library/Homebrew/cache_store.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/cache_store.rb b/Library/Homebrew/cache_store.rb index 14e90fca6a..cccad7d01c 100644 --- a/Library/Homebrew/cache_store.rb +++ b/Library/Homebrew/cache_store.rb @@ -39,6 +39,7 @@ class CacheStoreDatabase # Closes the underlying database (if it is created and open). def close_if_open! return unless @db + cache_path.dirname.mkpath cache_path.atomic_write(JSON.dump(@db)) end