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

This commit is contained in:
Jacobo Aragunde Pérez
2025-03-07 15:46:05 +00:00
committed by Marshall Greenblatt
parent 18b65ced23
commit e44a93551f

View File

@ -115,6 +115,8 @@ parser.add_option(
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
if not options.patchfile is None: 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: else:
apply_patch_config() apply_patch_config()