From 01a50376df89291d2d350d22c8d9de49604a0933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Draszik?= Date: Fri, 24 Jul 2015 13:48:47 +0100 Subject: run-postinsts: use ${localstatedir} instead of hardcoding /var/lib (From OE-Core rev: 48d735a8938ec7c49754a57019182ebcd9a2d8b6) (From OE-Core rev: dcfe46aab5ceae780dda52c5bfae38b8918c4614) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 2 +- meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'meta/recipes-devtools') diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts b/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts index f547a7b..7f77797 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 diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb b/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb index d126132..11c94e5 100644 --- a/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb +++ b/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb @@ -39,6 +39,7 @@ do_install() { sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' \ -e 's:#SBINDIR#:${sbindir}:g' \ -e 's:#BASE_BINDIR#:${base_bindir}:g' \ + -e 's:#LOCALSTATEDIR#:${localstatedir}:g' \ ${D}${sbindir}/run-postinsts \ ${D}${systemd_unitdir}/system/run-postinsts.service } -- cgit v1.1