Skip to content

Commit 1205722

Browse files
authored
Merge pull request #20907 from Homebrew/latest-formula-use-full-name
formula: use `full_name` in `latest_formula`
2 parents 085edfc + 9b00a6b commit 1205722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Library/Homebrew/formula.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,7 @@ def new_formula_available?
17591759

17601760
sig { returns(T.nilable(Formula)) }
17611761
def current_installed_alias_target
1762-
Formulary.factory(T.must(installed_alias_name)) if installed_alias_path
1762+
Formulary.factory(T.must(full_installed_alias_name)) if installed_alias_path
17631763
end
17641764

17651765
# Has the target of the alias used to install this formula changed?
@@ -1787,7 +1787,7 @@ def alias_changed?
17871787
# Otherwise, return self.
17881788
sig { returns(Formula) }
17891789
def latest_formula
1790-
installed_alias_target_changed? ? T.must(current_installed_alias_target) : Formulary.factory(name)
1790+
installed_alias_target_changed? ? T.must(current_installed_alias_target) : Formulary.factory(full_name)
17911791
end
17921792

17931793
sig { returns(T::Array[Formula]) }

0 commit comments

Comments
 (0)