Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP4:Update
rpm-ndb.32908
enable-postin-scripts-error.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File enable-postin-scripts-error.diff of Package rpm-ndb.32908
--- ./lib/transaction.c.orig 2020-12-22 22:41:46.339282135 +0000 +++ ./lib/transaction.c 2020-12-22 22:41:56.059256166 +0000 @@ -1462,7 +1462,9 @@ rpmRC runScript(rpmts ts, rpmte te, Head int warn_only = (stag != RPMTAG_PREIN && stag != RPMTAG_PREUN && stag != RPMTAG_PRETRANS && - stag != RPMTAG_VERIFYSCRIPT); + stag != RPMTAG_VERIFYSCRIPT && + !(stag == RPMTAG_POSTIN && + rpmExpandNumeric("%{_fail_on_postinstall_errors}"))); rpmdb rdb = rpmtsGetRdb(ts); /* Fake up a transaction element for triggers from rpmdb */ --- ./macros.in.orig 2020-12-22 22:41:46.351282103 +0000 +++ ./macros.in 2020-12-22 22:41:56.059256166 +0000 @@ -1468,5 +1468,10 @@ end} %{expand:%__scm_setup_%{__scm} %{!-v:-q}}\ %{!-N:%autopatch %{-v} %{-p:-p%{-p*}}} +# 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