Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
rpm
enable-postin-scripts-error.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File enable-postin-scripts-error.diff of Package rpm
--- lib/rpmscript.c.orig 2023-09-19 10:10:10.000000000 +0000 +++ lib/rpmscript.c 2023-10-09 13:10:38.011654503 +0000 @@ -463,7 +463,7 @@ rpmRC rpmScriptRun(rpmScript script, int if (script == NULL) return RPMRC_OK; ARGV_t args = NULL; - rpmlogLvl lvl = (script->flags & RPMSCRIPT_FLAG_CRITICAL) ? + rpmlogLvl lvl = (rpmScriptFlags(script) & RPMSCRIPT_FLAG_CRITICAL) ? RPMLOG_ERR : RPMLOG_WARNING; rpmRC rc; int script_type = RPMSCRIPTLET_FORK | RPMSCRIPTLET_EXEC; @@ -723,5 +723,8 @@ rpmscriptTypes rpmScriptType(rpmScript s rpmscriptFlags rpmScriptFlags(rpmScript script) { - return (script != NULL) ? script->flags : 0; + rpmscriptFlags flags = (script != NULL) ? script->flags : 0; + if (script && script->tag == RPMTAG_POSTIN && rpmExpandNumeric("%{_fail_on_postinstall_errors}")) + flags |= RPMSCRIPT_FLAG_CRITICAL; + return flags; } --- macros.in.orig 2023-10-09 13:10:35.043659922 +0000 +++ macros.in 2023-10-09 13:10:38.015654495 +0000 @@ -1377,5 +1377,10 @@ end end } +# Should errors in %post scriptlet be propagated as errors? +# +# Note: set to 1 for legacy compatibility. +%_fail_on_postinstall_errors 0 + # \endverbatim #*/
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor