From b1a74330d7ed2cb6e68271c93a93daa875e72a45 Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Fri, 25 Jul 2025 14:23:38 +1000 Subject: [PATCH] cask/audit: skip signing audit without gktool replace `odebug` with `opoo` Co-authored-by: Carlo Cabrera cask/audit: fix style --- Library/Homebrew/cask/audit.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index ae7415ef1c..0b36542061 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -510,11 +510,9 @@ module Cask when Artifact::Pkg system_command("spctl", args: ["--assess", "--type", "install", path], print_stderr: false) when Artifact::App - if which("gktool") - system_command("gktool", args: ["scan", path], print_stderr: false) - else - system_command("spctl", args: ["--assess", "--type", "execute", path], print_stderr: false) - end + next opoo "gktool not found, skipping app signing audit" unless which("gktool") + + system_command("gktool", args: ["scan", path], print_stderr: false) when Artifact::Binary # Shell scripts cannot be signed, so we skip them next if path.text_executable?