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
This commit is contained in:
parent
31ed0d6505
commit
d4db3d5d40
@ -85,6 +85,7 @@ class Dependency
|
|||||||
when :keep_but_prune_recursive_deps
|
when :keep_but_prune_recursive_deps
|
||||||
[dep]
|
[dep]
|
||||||
else
|
else
|
||||||
|
next [] if dependent.to_s == dep.name
|
||||||
expand(dep.to_formula, &block) << dep
|
expand(dep.to_formula, &block) << dep
|
||||||
end
|
end
|
||||||
end.flatten
|
end.flatten
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user