Patchwork [4/6] package_ipk: Ensure the status file exists

login
register
mail settings
Submitter Richard Purdie
Date April 18, 2013, 2:33 p.m.
Message ID <1366295611-4646-4-git-send-email-richard.purdie@linuxfoundation.org>
Download mbox | patch
Permalink /patch/48511/
State Accepted
Commit 540cf355599e555615ed9684c3b480463588eb78
Headers show

Comments

Richard Purdie - April 18, 2013, 2:33 p.m.
The postinstall for the opkg run-postinst hook checks for the existence of this
file. We therefore ensure it always exists during image generation.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes/package_ipk.bbclass |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index d003ae7..5873f71 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -85,6 +85,7 @@  package_install_internal_ipk() {
 	local package_multilib="${INSTALL_PACKAGES_MULTILIB_IPK}"
 
 	mkdir -p ${target_rootfs}${OPKGLIBDIR}/opkg
+	touch ${target_rootfs}${OPKGLIBDIR}/opkg/status
 
 	local ipkg_args="${OPKG_ARGS}"