Skip to content

Commit

Permalink
cmd/info: only display keg info if tap matches
Browse files Browse the repository at this point in the history
Fixes #19294.
  • Loading branch information
ZhongRuoyu committed Feb 12, 2025
1 parent c949f9f commit 7aa1725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def info_formula(formula)
kegs = [
*heads.sort_by { |keg| -keg.tab.time.to_i },
*versioned.sort_by(&:scheme_and_version),
]
].select { |keg| keg.tab.tap == formula.tap }

Check warning on line 301 in Library/Homebrew/cmd/info.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/cmd/info.rb#L301

Added line #L301 was not covered by tests
if kegs.empty?
puts "Not installed"
if (bottle = formula.bottle)
Expand Down

0 comments on commit 7aa1725

Please # to comment.