Patchwork opkg.inc: don't hardcode /var/lib/opkg

login
register
mail settings
Submitter Laurentiu Palcu
Date April 11, 2013, 1:03 p.m.
Message ID <1365685423-27713-1-git-send-email-laurentiu.palcu@intel.com>
Download mbox | patch
Permalink /patch/47931/
State Accepted
Commit d1ff4b68ba0828d7b319f93145218244857753ef
Headers show

Comments

Laurentiu Palcu - April 11, 2013, 1:03 p.m.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
---
 meta/recipes-devtools/opkg/opkg.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc
index ff26b04..14b50ce 100644
--- a/meta/recipes-devtools/opkg/opkg.inc
+++ b/meta/recipes-devtools/opkg/opkg.inc
@@ -62,7 +62,7 @@  REDIRECT_CMD = "${@base_contains('IMAGE_FEATURES', 'debug-tweaks', '>${POSTLOG}
 
 pkg_postinst_${PN} () {
 #!/bin/sh
-if [ "x$D" != "x" ] && [ -f $D/var/lib/opkg/status ]; then
+if [ "x$D" != "x" ] && [ -f $D${OPKGLIBDIR}/opkg/status ]; then
 	install -d $D${sysconfdir}/rcS.d
 
 	# this happens at S98 where our good 'ole packages script used to run