From ba5692f7e552f3b32963df178fafcbf0cc56a7e1 Mon Sep 17 00:00:00 2001 From: "Andrew R. McBurney" Date: Thu, 17 May 2018 13:07:56 -0400 Subject: [PATCH] Only update the cache for a formula if the cache is not `empty?`. --- Library/Homebrew/formula_installer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 6514a919cf..92d4b2da3e 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -612,7 +612,7 @@ class FormulaInstaller # Updates the cache for a particular formula after doing an install DatabaseCache.new(:linkage) do |database_cache| - LinkageChecker.new(keg, database_cache, false, formula) + LinkageChecker.new(keg, database_cache, false, formula) unless database_cache.empty? end # let's reset Utils.git_available? if we just installed git