From 120c1695467f68e3bf89169760e156cf01b3b6b0 Mon Sep 17 00:00:00 2001
From: Michka Popoff <michkapopoff@gmail.com>
Date: Tue, 24 Nov 2020 12:31:02 +0100
Subject: [PATCH] audit: do not check for mixed dependencies

- for disabled formulae
- for deprecated formulae, except for the versioned ones.
---
 Library/Homebrew/formula_auditor.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb
index 0392b11e7e..e86f600efd 100644
--- a/Library/Homebrew/formula_auditor.rb
+++ b/Library/Homebrew/formula_auditor.rb
@@ -1,6 +1,7 @@
 # typed: false
 # frozen_string_literal: true
 
+require "deprecate_disable"
 require "formula_text_auditor"
 require "resource_auditor"
 
@@ -325,6 +326,11 @@ module Homebrew
 
       return if version_conflicts.empty?
 
+      return if formula.disabled?
+
+      return if formula.deprecated? &&
+                formula.deprecation_reason != DeprecateDisable::DEPRECATE_DISABLE_REASONS[:versioned_formula]
+
       problem <<~EOS
         #{formula.full_name} contains conflicting version recursive dependencies:
           #{version_conflicts.to_a.join ", "}
-- 
GitLab