diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-03-03 17:29:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-13 11:45:08 +0000 |
commit | 717f9740e5c5f6c9c55c3a031e55bb2ab4d08dd1 (patch) | |
tree | 76441342ebdf676d78a1f9f1b4b2726f0ab91be7 | |
parent | e26d3e6aae888fa107587ea7fabf8a0c12317f8c (diff) | |
download | poky-717f9740e5c5f6c9c55c3a031e55bb2ab4d08dd1.tar.gz |
run-postinsts: fix opkg data path
(From OE-Core rev: 791f7e16d003eb1e116a26eec716e6bbac28b8f9)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | meta/recipes-devtools/dpkg/run-postinsts/run-postinsts | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/dpkg/run-postinsts_1.0.bb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts b/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts index 584a92ebfd..5f6442cbe3 100755 --- a/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts +++ b/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts | |||
@@ -8,8 +8,8 @@ | |||
8 | PKGSYSTEM=/var/lib/dpkg | 8 | PKGSYSTEM=/var/lib/dpkg |
9 | 9 | ||
10 | if [ ! -e $PKGSYSTEM/status ]; then | 10 | if [ ! -e $PKGSYSTEM/status ]; then |
11 | if [ -e /usr/lib/opkg/status ]; then | 11 | if [ -e /var/lib/opkg/status ]; then |
12 | PKGSYSTEM=/usr/lib/opkg | 12 | PKGSYSTEM=/var/lib/opkg |
13 | else | 13 | else |
14 | echo "No package system found" | 14 | echo "No package system found" |
15 | exit 1 | 15 | 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 d92200b4f0..18a0492fc0 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 { | |||
11 | if (rc==0) | 11 | if (rc==0) |
12 | pkgdir="/var/lib/dpkg/info" | 12 | pkgdir="/var/lib/dpkg/info" |
13 | else | 13 | else |
14 | pkgdir="/usr/lib/opkg/info" | 14 | pkgdir="/var/lib/opkg/info" |
15 | package="" | 15 | package="" |
16 | } | 16 | } |
17 | /Package:.*/ { | 17 | /Package:.*/ { |
diff --git a/meta/recipes-devtools/dpkg/run-postinsts_1.0.bb b/meta/recipes-devtools/dpkg/run-postinsts_1.0.bb index f8f3368729..7438a10424 100644 --- a/meta/recipes-devtools/dpkg/run-postinsts_1.0.bb +++ b/meta/recipes-devtools/dpkg/run-postinsts_1.0.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | DESCRIPTION = "Run postinstall scripts on device using awk" | 1 | DESCRIPTION = "Run postinstall scripts on device using awk" |
2 | SECTION = "devel" | 2 | SECTION = "devel" |
3 | PR = "r7" | 3 | PR = "r8" |
4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
5 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ | 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ |
6 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 6 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |