From 045de17ed32544fa0e39b187ebdc0e6d4fc0307b Mon Sep 17 00:00:00 2001 From: Coiby Xu Date: Jun 09 2023 02:02:41 +0000 Subject: Update guidelines/modules/ROOT/pages/Scriptlets.adoc For Fedora >= 37, the posttrans scriptlet now distinguishes between package install ($1 == 1) and upgrade ($1 == 2). --- diff --git a/guidelines/modules/ROOT/pages/Scriptlets.adoc b/guidelines/modules/ROOT/pages/Scriptlets.adoc index cac2ccd..902bffb 100644 --- a/guidelines/modules/ROOT/pages/Scriptlets.adoc +++ b/guidelines/modules/ROOT/pages/Scriptlets.adoc @@ -45,7 +45,7 @@ So for the common case of install, upgrade, and uninstall we have: |`+%post+` |`+$1 == 1+` |`+$1 == 2+` |(N/A) |`+%preun+` |(N/A) |`+$1 == 1+` |`+$1 == 0+` |`+%postun+` |(N/A) |`+$1 == 1+` |`+$1 == 0+` -|`+%posttrans+` |`+$1 == 1+` |`+$1 == 1+` |(N/A) +|`+%posttrans+` |`+$1 == 1+` |`+$1 == 2+` |(N/A) |=================================== Note that these values will vary