diff options
Diffstat (limited to 'meta/recipes-devtools/run-postinsts')
-rwxr-xr-x | meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb | 1 |
2 files changed, 2 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 | |||
20 | 20 | ||
21 | case $pm in | 21 | case $pm in |
22 | "deb") | 22 | "deb") |
23 | if [ -s "/var/lib/dpkg/status" ]; then | 23 | if [ -s "#LOCALSTATEDIR#/lib/dpkg/status" ]; then |
24 | pm_installed=true | 24 | pm_installed=true |
25 | break | 25 | break |
26 | fi | 26 | 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 d126132a87..11c94e57d8 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() { | |||
39 | sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' \ | 39 | sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' \ |
40 | -e 's:#SBINDIR#:${sbindir}:g' \ | 40 | -e 's:#SBINDIR#:${sbindir}:g' \ |
41 | -e 's:#BASE_BINDIR#:${base_bindir}:g' \ | 41 | -e 's:#BASE_BINDIR#:${base_bindir}:g' \ |
42 | -e 's:#LOCALSTATEDIR#:${localstatedir}:g' \ | ||
42 | ${D}${sbindir}/run-postinsts \ | 43 | ${D}${sbindir}/run-postinsts \ |
43 | ${D}${systemd_unitdir}/system/run-postinsts.service | 44 | ${D}${systemd_unitdir}/system/run-postinsts.service |
44 | } | 45 | } |