Skip to content
Snippets Groups Projects
Commit ba5692f7 authored by Andrew R. McBurney's avatar Andrew R. McBurney
Browse files

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

parent 17f484b0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment