Closed stevenxxiu closed 3 months ago
The post_install()
function is only run when the package is fully installed on the device, i.e. it will not be run when the package is reinstalled or updated.
To make the post_install()
function run after reinstalling or upgrading a package, you must use the post_upgrade()
function. Here's an example to help you understand how to implement this in the Termux package: https://github.com/termux-pacman/termux-packages/blob/master/packages/python-pip/build.sh#L56
Recently I added the https://github.com/termux/termux-packages/blob/ab539a2c2fa5b10757193d148841b479bf485b72/packages/pueue/build.sh package to Termux.
post_install()
doesn't appear to run when I install this. I don't get:: Running post-transaction hooks...
.Is this reproducible or is there some issue with my config? My Pacman config is fairly vanilla.