From 1af5984b14bc81a84e89a8dccd4e1cc61364236f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Priit=20L=C3=A4tt?= Date: Mon, 16 Sep 2024 15:58:45 +0300 Subject: [PATCH] Add comment about reading stderr --- src/codemagic/models/certificate_p12_exporter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/codemagic/models/certificate_p12_exporter.py b/src/codemagic/models/certificate_p12_exporter.py index 3eb79f3e..ff2cf2cf 100644 --- a/src/codemagic/models/certificate_p12_exporter.py +++ b/src/codemagic/models/certificate_p12_exporter.py @@ -54,6 +54,9 @@ def _is_noenc_flag_supported(self) -> bool: capture_output=True, check=False, ) + # Check both stdout and stderr because LibreSSL doesn't have help commands per-se. + # Execution fails, and it just outputs "unknown option '-help'" along with full + # command usage to stderr. self.__SUPPORTS_NOENC__ = b"-noenc" in completed_process.stdout or b"-noenc" in completed_process.stderr return self.__SUPPORTS_NOENC__