From 4fbe0a2b1bd35eb76467a9decee526382fe9ac5b Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Tue, 12 Oct 2021 15:35:46 +0800 Subject: [PATCH] Fix false positives in audit There was a typo that made it so that all libraries were being included in `flat_namespace_files`. --- Library/Homebrew/extend/os/mac/formula_cellar_checks.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/extend/os/mac/formula_cellar_checks.rb b/Library/Homebrew/extend/os/mac/formula_cellar_checks.rb index 515cbbdd0d..ab9042331a 100644 --- a/Library/Homebrew/extend/os/mac/formula_cellar_checks.rb +++ b/Library/Homebrew/extend/os/mac/formula_cellar_checks.rb @@ -98,9 +98,9 @@ module FormulaCellarChecks macho = MachO.open(file) if file.universal? - macho.machos.map(&:header).all? { |h| h.flag? :MH_TWO_LEVEL } + macho.machos.map(&:header).all? { |h| h.flag? :MH_TWOLEVEL } else - macho.header.flag?(:MH_TWO_LEVEL) + macho.header.flag?(:MH_TWOLEVEL) end end return if flat_namespace_files.empty?