From 94d70b36a45c2cfe88076b27238226e29574f7ec Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Mon, 19 Jun 2023 04:03:45 +0100 Subject: [PATCH] diagnostic: ignore core tap install status unless no-api is enabled --- Library/Homebrew/diagnostic.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index c17e260df2..f24f32e57c 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -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)