Skip to content
Snippets Groups Projects
Commit b9543912 authored by Markus Reiter's avatar Markus Reiter
Browse files

Skip migration if cache is empty or doesn’t exist.

parent 3d15c7cb
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,9 @@ module UpdateMigrator
return if ENV.key?("HOMEBREW_DISABLE_LOAD_FORMULA")
return unless HOMEBREW_CACHE.directory?
return if HOMEBREW_CACHE.children.empty?
ohai "Migrating cache entries..."
Formula.each do |formula|
......@@ -78,6 +81,9 @@ module UpdateMigrator
return if ENV.key?("HOMEBREW_DISABLE_LOAD_FORMULA")
return unless HOMEBREW_CACHE.directory?
return if HOMEBREW_CACHE.children.empty?
ohai "Migrating cache entries..."
cache_entries = lambda do |path|
......
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