[pacman-dev] makepkg.1: install script not called during upgrade?
According to the makepkg(1), "Note that during an upgrade operation, none of the install or remove scripts will be called." Is this a mistake in the manual? I believe "functions" was meant instead of "scripts". -- Pierre Neidhardt Security check: INTRUDER ALERT!
Sorry, I meant PKGBUILD(5). On 15-09-07 14:42:24, Pierre Neidhardt wrote:
According to the makepkg(1), "Note that during an upgrade operation, none of the install or remove scripts will be called." Is this a mistake in the manual? I believe "functions" was meant instead of "scripts".
-- Pierre Neidhardt Higher education helps your earning capacity. Ask any college professor.
I think what this wants to say is that during an upgrade-operation, only the pre- and post-*upgrade*-functions are called, not the install- nor remove-functions. That's why there are some packages out there whose post_upgrade-function just calls the post_install one. ~ J
Exactly, so we should change `scripts` to `functions`. On 15-09-07 15:39:22, Jonas Große Sundrup wrote:
I think what this wants to say is that during an upgrade-operation, only the pre- and post-*upgrade*-functions are called, not the install- nor remove-functions. That's why there are some packages out there whose post_upgrade-function just calls the post_install one.
~ J
-- Pierre Neidhardt Test-tube babies shouldn't throw stones.
Am 07.09.2015 um 17:30 schrieb Pierre Neidhardt:
Exactly, so we should change `scripts` to `functions`.
Yes. I think the install file used to be run as a script itself, but nowadays it is parsed and the functions itself are called. I suppose that might be a remainer of that old way. ~ J
participants (2)
-
Jonas Große Sundrup
-
Pierre Neidhardt