Skip to content
Snippets Groups Projects
Commit d4db3d5d authored by Mike McQuaid's avatar Mike McQuaid
Browse files

dependency: don't try and expand yourself.

This can happen on e.g. fossil where the dependency HEAD requires having
an install of fossil in order to check it out. Bit of a silly edge case
but this handles it.

Fixes Homebrew/homebrew#25605
parent 31ed0d65
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,7 @@ class Dependency
when :keep_but_prune_recursive_deps
[dep]
else
next [] if dependent.to_s == dep.name
expand(dep.to_formula, &block) << dep
end
end.flatten
......
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