formula_installer: improve a comment.
Based on: https://github.com/Homebrew/brew/pull/15778#discussion_r1294477218
This commit is contained in:
parent
72d25a21df
commit
8430acf7ba
@ -1187,7 +1187,11 @@ on_request: installed_on_request?, options: options)
|
|||||||
|
|
||||||
sig { returns(T.nilable(Formula)) }
|
sig { returns(T.nilable(Formula)) }
|
||||||
def previously_fetched_formula
|
def previously_fetched_formula
|
||||||
# We intentionally don't compare classes here.
|
# We intentionally don't compare classes here:
|
||||||
|
# from-API-JSON and from-source formula classes are not equal but we
|
||||||
|
# want to equate them to be the same thing here given mixing bottle and
|
||||||
|
# from-source installs of the same formula within the same operation
|
||||||
|
# doesn't make sense.
|
||||||
self.class.fetched.find do |fetched_formula|
|
self.class.fetched.find do |fetched_formula|
|
||||||
fetched_formula.full_name == formula.full_name && fetched_formula.active_spec_sym == formula.active_spec_sym
|
fetched_formula.full_name == formula.full_name && fetched_formula.active_spec_sym == formula.active_spec_sym
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user