2018-07-04 14:04:51 +02:00
|
|
|
--- ./lib/transaction.c.orig 2018-07-02 14:51:41.328051671 +0000
|
|
|
|
+++ ./lib/transaction.c 2018-07-02 14:51:46.264038824 +0000
|
|
|
|
@@ -1462,7 +1462,9 @@ rpmRC runScript(rpmts ts, rpmte te, Head
|
2016-04-21 15:24:43 +02:00
|
|
|
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}")));
|
2017-01-19 16:41:55 +01:00
|
|
|
rpmdb rdb = rpmtsGetRdb(ts);
|
2016-04-21 15:24:43 +02:00
|
|
|
|
2017-12-05 11:46:24 +01:00
|
|
|
/* Fake up a transaction element for triggers from rpmdb */
|
2018-07-04 14:04:51 +02:00
|
|
|
--- ./macros.in.orig 2018-07-02 14:51:41.340051640 +0000
|
|
|
|
+++ ./macros.in 2018-07-02 14:51:46.264038824 +0000
|
|
|
|
@@ -1290,5 +1290,10 @@ end}
|
2017-12-05 11:46:24 +01:00
|
|
|
%{expand:%__scm_setup_%{__scm} %{!-v:-q}}\
|
2016-04-21 15:24:43 +02:00
|
|
|
%{!-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
|
|
|
|
#*/
|