Only update the cache for a formula if the cache is not empty?.

This commit is contained in:
Andrew R. McBurney 2018-05-17 13:07:56 -04:00
parent 17f484b0ae
commit ba5692f7e5

View File

@ -612,7 +612,7 @@ class FormulaInstaller
# Updates the cache for a particular formula after doing an install # Updates the cache for a particular formula after doing an install
DatabaseCache.new(:linkage) do |database_cache| 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 end
# let's reset Utils.git_available? if we just installed git # let's reset Utils.git_available? if we just installed git