[Bf-blender-cvs] [1176591574f] master: Codesign: Allo non-zero exit code for signtool on Windows

Sergey Sharybin noreply at git.blender.org
Tue Dec 1 17:17:04 CET 2020


Commit: 1176591574f9ec5ead51c512dbe77c3cc7972d6d
Author: Sergey Sharybin
Date:   Tue Dec 1 17:16:48 2020 +0100
Branches: master
https://developer.blender.org/rB1176591574f9ec5ead51c512dbe77c3cc7972d6d

Codesign: Allo non-zero exit code for signtool on Windows

===================================================================

M	build_files/buildbot/codesign/windows_code_signer.py

===================================================================

diff --git a/build_files/buildbot/codesign/windows_code_signer.py b/build_files/buildbot/codesign/windows_code_signer.py
index 251dd856c8a..db185788a56 100644
--- a/build_files/buildbot/codesign/windows_code_signer.py
+++ b/build_files/buildbot/codesign/windows_code_signer.py
@@ -64,7 +64,12 @@ class WindowsCodeSigner(BaseCodeSigner):
 
     def run_codesign_tool(self, filepath: Path) -> None:
         command = self.get_sign_command_prefix() + [filepath]
-        codesign_output = self.check_output_or_mock(command, util.Platform.WINDOWS)
+
+        try:
+            codesign_output = self.check_output_or_mock(command, util.Platform.WINDOWS)
+        except subprocess.CalledProcessError as e:
+            raise SigntoolException(f'Error running signtool {e}')
+
         logger_server.info(f'signtool output:\n{codesign_output}')
 
         got_number_of_success = False



More information about the Bf-blender-cvs mailing list