[oe-commits] Laurentiu Palcu : opkg.inc: don't hardcode /var/lib/opkg

git at git.openembedded.org git at git.openembedded.org
Thu Apr 11 15:36:36 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 9caf1f2540f0419c1301cc21777f97c6671fd844
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=9caf1f2540f0419c1301cc21777f97c6671fd844

Author: Laurentiu Palcu <laurentiu.palcu at intel.com>
Date:   Thu Apr 11 16:03:43 2013 +0300

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

Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/opkg/opkg.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc
index c1798b1..c34ac5b 100644
--- a/meta/recipes-devtools/opkg/opkg.inc
+++ b/meta/recipes-devtools/opkg/opkg.inc
@@ -63,7 +63,7 @@ REDIRECT_CMD[vardepsexclude] += "IMAGE_FEATURES 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





More information about the Openembedded-commits mailing list