]> git.ipfire.org Git - thirdparty/openwrt.git/commit
include/package-pack: add missing apk package lifecycle events 18531/head
authorGeorge Sapkin <george@sapk.in>
Fri, 18 Apr 2025 18:38:17 +0000 (21:38 +0300)
committerRobert Marko <robimarko@gmail.com>
Fri, 13 Jun 2025 08:46:16 +0000 (10:46 +0200)
commit03880e2551cbc76778f30c389e93db235029e299
tree55a9113750cb42047f486075930ab8a129233839
parentaefdbf0edc9ea046f55868ddee85442a591b2e4b
include/package-pack: add missing apk package lifecycle events

- pre-install calls preinst
- pre-upgrade calls preinst with PKG_UPGRADE=1
- post-upgrade calls postinst with PKG_UPGRADE=1
- prerm and postrm from the previous version of a package are NOT
  executed on upgrade, so packages are expected to handle their own
  migrations in the new versions

Link: https://wiki.alpinelinux.org/wiki/Creating_an_Alpine_package
Fixes: #18527
Reported-by: Dobroslaw Kijowski <dobo90@gmail.com>
Suggested-by: Eric Fahlgren <ericfahlgren@gmail.com>
Suggested-by: Jonas Gorski <jonas.gorski@gmail.com>
Suggested-by: Thomas Richard <thomas.richard@bootlin.com>
Signed-off-by: George Sapkin <george@sapk.in>
Link: https://github.com/openwrt/openwrt/pull/18531
Signed-off-by: Robert Marko <robimarko@gmail.com>
include/package-pack.mk