2017-01-19 16:41:55 +01:00
|
|
|
--- ./lib/transaction.c.orig 2017-01-19 13:46:06.163983390 +0000
|
|
|
|
+++ ./lib/transaction.c 2017-01-19 13:47:03.649807918 +0000
|
|
|
|
@@ -1435,7 +1435,9 @@ rpmRC runScript(rpmts ts, rpmte te, ARGV
|
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
|
|
|
|
|
|
|
sfd = rpmtsNotify(ts, te, RPMCALLBACK_SCRIPT_START, stag, 0);
|
2017-01-19 16:41:55 +01:00
|
|
|
--- ./macros.in.orig 2017-01-19 13:44:57.362193434 +0000
|
|
|
|
+++ ./macros.in 2017-01-19 13:45:13.038145574 +0000
|
|
|
|
@@ -1374,6 +1374,11 @@ end}
|
2016-04-21 15:24:43 +02:00
|
|
|
%{-S:%{expand:%__scm_setup_%{-S*} %{!-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
|
|
|
|
#*/
|
|
|
|
|