From e44a93551f8c7f7cf4a81881fd54d69e2c652e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacobo=20Aragunde=20P=C3=A9rez?= Date: Fri, 7 Mar 2025 15:46:05 +0000 Subject: [PATCH] tools: Add non-zero exit code for single patch failure (fixes #3903) --- tools/patcher.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/patcher.py b/tools/patcher.py index 023e91d4b..9877ad76f 100644 --- a/tools/patcher.py +++ b/tools/patcher.py @@ -115,6 +115,8 @@ parser.add_option( (options, args) = parser.parse_args() if not options.patchfile is None: - apply_patch_file(options.patchfile, options.patchdir) + result = apply_patch_file(options.patchfile, options.patchdir) + if result == 'fail': + sys.exit(1) else: apply_patch_config()