tools: Add non-zero exit code for single patch failure (fixes #3903)

This commit is contained in:
Jacobo Aragunde Pérez authored and Marshall Greenblatt committed 2025-03-07 15:46:05 +00:00
1 parent 18b65ced23
commit e44a93551f
1 file changed
+3 -1
+3 -1
View File
@@ -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()