#1282 Update guidelines/modules/ROOT/pages/Scriptlets.adoc
Merged 10 months ago by tibbs. Opened 11 months ago by coiby.
coiby/packaging-committee master  into  master

@@ -45,7 +45,7 @@ 

  |`+%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

For Fedora >= 37, the posttrans scriptlet now distinguishes between package install ($1 == 1) and upgrade ($1 == 2).

rebased onto 49ff65e7e3cee5cdcf634b33345357b68a70b564

11 months ago

I assume that this was an rpm 4.18 change, and that it's what "Fix %posttrans argument on upgrade" in the 4.18 release notes is talking about.

Honestly I question the point of this whole section of the packaging guidelines, but it comes from the days when there wasn't a lot of RPM documentation and the guidelines sort of filled that role. But as long as it's there, it shouldn't be actively wrong.

rebased onto 045de17

10 months ago

Pull-Request has been merged by tibbs

10 months ago
Metadata