libopkg: pass PKG_UPGRADE variable to package scripts
authorJo-Philipp Wich <jo@mein.io>
Fri, 10 Feb 2017 09:31:55 +0000 (10:31 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 10 Feb 2017 09:33:29 +0000 (10:33 +0100)
When installing or upgrading packages, pass an PKG_UPGRADE environment
variable to maintainer scripts to allow the to perform different actions
depending on whether a package is freshly installed or upgraded.

During installs the PKG_UPGRADE variable will be set to 0 and during
upgrades to 1.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

No differences found