From 19939ac276f1d70b670777838f2426f79e05f35d Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Wed, 12 Apr 2023 19:57:35 +0200 Subject: [PATCH] Fix codesign audit paths. --- Library/Homebrew/cask/audit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index 34f0ffb9c9..8719434932 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -476,7 +476,7 @@ module Cask artifacts.each do |artifact| case artifact when Artifact::Moved - path = tmpdir/artifact.source.basename + path = tmpdir/artifact.source.relative_path_from(cask.staged_path) next unless path.exist? result = system_command("codesign", args: ["--verify", path], print_stderr: false) @@ -498,7 +498,7 @@ module Cask add_error(message, strict_only: true) when Artifact::Pkg - path = downloaded_path + path = tmpdir/artifact.path.relative_path_from(cask.staged_path) next unless path.exist? result = system_command("pkgutil", args: ["--check-signature", path], print_stderr: false)