aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/run-postinsts/run-postinsts
diff options
context:
space:
mode:
authorAndré Draszik <git@andred.net>2015-07-24 13:48:47 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-31 10:31:01 +0100
commit48d735a8938ec7c49754a57019182ebcd9a2d8b6 (patch)
tree36fdd3f56d5cd6013b10b7bdc9e2a65e14ac047d /meta/recipes-devtools/run-postinsts/run-postinsts
parent5f3f4196988675e9be5aea8eac56687641b90c10 (diff)
downloadopenembedded-core-contrib-48d735a8938ec7c49754a57019182ebcd9a2d8b6.tar.gz
run-postinsts: use ${localstatedir} instead of hardcoding /var/lib
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-devtools/run-postinsts/run-postinsts')
-rwxr-xr-xmeta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
index ac9cee678b..58ea85e114 100755
--- a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
+++ b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
@@ -20,7 +20,7 @@ for pm in $backend_list; do
case $pm in
"deb")
- if [ -s "/var/lib/dpkg/status" ]; then
+ if [ -s "#LOCALSTATEDIR#/lib/dpkg/status" ]; then
pm_installed=true
break
fi