pkg_run_script: use pkg->dest in half installed case
authorAlejandro del Castillo <alejandro.delcastillo@ni.com>
Mon, 27 Mar 2017 21:58:17 +0000 (16:58 -0500)
committerJo-Philipp Wich <jo@mein.io>
Sun, 9 Apr 2017 10:02:55 +0000 (12:02 +0200)
commit3f13edd42bd2411f1f0bdc40b0033b1a193ef037
treecad2dc1c283b173e503055f368aa9ba01ae284af
parent1d0263bb40e3c099501fc1f2431907636230e7f2
pkg_run_script: use pkg->dest in half installed case

Fixes running scripts for packages in half-installed state which would
otherwise fail with:

 * pkg_run_script: Internal error: ... has a NULL tmp_unpack_dir.
 * opkg_remove_pkg: not removing package "...", prerm script failed

Upstream bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=11245

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
[Jo-Philipp Wich: rebased onto opkg-lede, updated commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg/pkg.c