mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
diagnostic: ignore core tap install status unless no-api is enabled
This commit is contained in:
parent
e986264a3e
commit
94d70b36a4
@ -822,8 +822,8 @@ module Homebrew
|
|||||||
deleted_formulae = kegs.map do |keg|
|
deleted_formulae = kegs.map do |keg|
|
||||||
next if Formulary.tap_paths(keg.name).any?
|
next if Formulary.tap_paths(keg.name).any?
|
||||||
|
|
||||||
if !CoreTap.instance.installed? && !EnvConfig.no_install_from_api?
|
unless EnvConfig.no_install_from_api?
|
||||||
# Formulae installed with HOMEBREW_INSTALL_FROM_API should not count as deleted formulae
|
# Formulae installed from the API should not count as deleted formulae
|
||||||
# but may not have a tap listed in their tab
|
# but may not have a tap listed in their tab
|
||||||
tap = Tab.for_keg(keg).tap
|
tap = Tab.for_keg(keg).tap
|
||||||
next if (tap.blank? || tap.core_tap?) && Homebrew::API::Formula.all_formulae.key?(keg.name)
|
next if (tap.blank? || tap.core_tap?) && Homebrew::API::Formula.all_formulae.key?(keg.name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user