Skip to content
Snippets Groups Projects
Unverified Commit 54c8876d authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #15565 from Bo98/doctor-deleted-api-fix

diagnostic: ignore core tap install status unless no-api is enabled
parents 1db2664d 94d70b36
Branches
Tags 4.0.24
No related merge requests found
......@@ -822,8 +822,8 @@ module Homebrew
deleted_formulae = kegs.map do |keg|
next if Formulary.tap_paths(keg.name).any?
if !CoreTap.instance.installed? && !EnvConfig.no_install_from_api?
# Formulae installed with HOMEBREW_INSTALL_FROM_API should not count as deleted formulae
unless EnvConfig.no_install_from_api?
# Formulae installed from the API should not count as deleted formulae
# but may not have a tap listed in their tab
tap = Tab.for_keg(keg).tap
next if (tap.blank? || tap.core_tap?) && Homebrew::API::Formula.all_formulae.key?(keg.name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment