summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/dpkg/run-postinsts
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-03-03 17:29:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-13 11:44:44 +0000
commit791f7e16d003eb1e116a26eec716e6bbac28b8f9 (patch)
tree2471e42c7c07874459d615b81929dad74ddf1dd5 /meta/recipes-devtools/dpkg/run-postinsts
parent1619bd7aa56f7cd4f7c9696eec3389b150de043a (diff)
downloadopenembedded-core-791f7e16d003eb1e116a26eec716e6bbac28b8f9.tar.gz
openembedded-core-791f7e16d003eb1e116a26eec716e6bbac28b8f9.tar.bz2
openembedded-core-791f7e16d003eb1e116a26eec716e6bbac28b8f9.tar.xz
openembedded-core-791f7e16d003eb1e116a26eec716e6bbac28b8f9.zip
run-postinsts: fix opkg data path
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'meta/recipes-devtools/dpkg/run-postinsts')
-rwxr-xr-xmeta/recipes-devtools/dpkg/run-postinsts/run-postinsts4
-rw-r--r--meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk2
2 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts b/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts
index 584a92ebf..5f6442cbe 100755
--- a/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts
+++ b/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts
@@ -8,8 +8,8 @@
PKGSYSTEM=/var/lib/dpkg
if [ ! -e $PKGSYSTEM/status ]; then
- if [ -e /usr/lib/opkg/status ]; then
- PKGSYSTEM=/usr/lib/opkg
+ if [ -e /var/lib/opkg/status ]; then
+ PKGSYSTEM=/var/lib/opkg
else
echo "No package system found"
exit 1
diff --git a/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk b/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk
index d92200b4f..18a0492fc 100644
--- a/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk
+++ b/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk
@@ -11,7 +11,7 @@ BEGIN {
if (rc==0)
pkgdir="/var/lib/dpkg/info"
else
- pkgdir="/usr/lib/opkg/info"
+ pkgdir="/var/lib/opkg/info"
package=""
}
/Package:.*/ {