From 8c089ff70c5fcfa2d33f314149599169cef19771 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Oct 06 2021 21:25:26 +0000 Subject: Show correct pre and posttrans arguments Years ago RPM fixed the scriptlet arguments for %pretrans and %posttrans to not be zero. This catches up the Scriptlets document to match that reality. Fixes #1051. --- diff --git a/guidelines/modules/ROOT/pages/Scriptlets.adoc b/guidelines/modules/ROOT/pages/Scriptlets.adoc index 9a6507e..0310a5e 100644 --- a/guidelines/modules/ROOT/pages/Scriptlets.adoc +++ b/guidelines/modules/ROOT/pages/Scriptlets.adoc @@ -42,12 +42,12 @@ So for the common case of install, upgrade, and uninstall we have: [cols=",,,",] |=================================== | |install |upgrade |uninstall -|%pretrans |$1 == 0 |$1 == 0 |(N/A) +|%pretrans |$1 == 1 |$1 == 2 |(N/A) |%pre |$1 == 1 |$1 == 2 |(N/A) |%post |$1 == 1 |$1 == 2 |(N/A) |%preun |(N/A) |$1 == 1 |$1 == 0 |%postun |(N/A) |$1 == 1 |$1 == 0 -|%posttrans |$1 == 0 |$1 == 0 |(N/A) +|%posttrans |$1 == 1 |$1 == 1 |(N/A) |=================================== Note that these values will vary