]> code.ossystems Code Review - openembedded-core.git/commitdiff
run-postinsts: fix opkg data path
authorOtavio Salvador <otavio@ossystems.com.br>
Sat, 3 Mar 2012 17:29:02 +0000 (17:29 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Mar 2012 11:44:44 +0000 (11:44 +0000)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta/recipes-devtools/dpkg/run-postinsts/run-postinsts
meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk
meta/recipes-devtools/dpkg/run-postinsts_1.0.bb

index 584a92ebfdf0c00b73230a4dd40de74dcf06f913..5f6442cbe3f5e36457bdaa979a04380dc563cfb2 100755 (executable)
@@ -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
index d92200b4f02e339305b1c155d7599fdafa6221c2..18a0492fc0e4a7ee2ea6571ecea1fb3f72cc33f7 100644 (file)
@@ -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:.*/ {
index f8f33687299e61c93e38de3e4dbe2df469495fc1..7438a10424ae479dcde79a962f28a5072e4b28cf 100644 (file)
@@ -1,6 +1,6 @@
 DESCRIPTION = "Run postinstall scripts on device using awk"
 SECTION = "devel"
-PR = "r7"
+PR = "r8"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
                     file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"