libopkg: run prerm scripts for the old version also on upgrade
authorJo-Philipp Wich <jo@mein.io>
Fri, 10 Feb 2017 10:05:44 +0000 (11:05 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 10 Feb 2017 10:05:44 +0000 (11:05 +0100)
commit5d0179bd88a83c5f4d9a3b8393a28f0c6a30d1c1
treecfe9542d6c5035394d29f1585a27b4c1f2f5567d
parent1c02cdf4b0c932edc4180199057416363aa7048a
libopkg: run prerm scripts for the old version also on upgrade

To make sure we properly restart services on upgrade we need to
call the prerm script of the old package, in case the init script
changes (or vanishes).

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Acked-by: Jo-Philipp Wich <jo@mein.io>
libopkg/opkg_install.c