Skip to content

Commit

Permalink
Merge pull request #19295 from Homebrew/brew-info-check-keg
Browse files Browse the repository at this point in the history
cmd/info: only display keg info if tap matches
  • Loading branch information
Bo98 authored Feb 16, 2025
2 parents 673f190 + 59445c7 commit 7436173
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| (tap = keg.tab.tap).nil? || tap == formula.tap }
if kegs.empty?
puts "Not installed"
if (bottle = formula.bottle)
Expand Down

0 comments on commit 7436173

Please # to comment.