]> code.ossystems Code Review - openembedded-core.git/commitdiff
dpkg: Correct paths in postinst
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Apr 2013 20:52:05 +0000 (20:52 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Apr 2013 20:55:07 +0000 (21:55 +0100)
The postinstall needs to reference $D, not ${D} which would get expanded
by bitbake. This allows postinsts to run correctly on the target system.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/dpkg/dpkg.inc

index 35cd6e71b82b4213d71a5d7ddb0d3b1428673f2f..92a5adcdcde8d2cb674968d89c82129a37301cb1 100644 (file)
@@ -62,14 +62,14 @@ do_install_append_class-native () {
 pkg_postinst_${PN} () {
 #!/bin/sh
 if [ "x$D" != "x" ] && [ -f $D/var/lib/dpkg/status ]; then
-       install -d ${D}/${sysconfdir}/rcS.d
+       install -d $D${sysconfdir}/rcS.d
 
        # this happens at S98 where our good 'ole packages script used to run
        echo "#!/bin/sh
 dpkg --configure -a ${REDIRECT_CMD}
 rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
-" > ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
-       chmod 0755 ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
+" > $D${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
+       chmod 0755 $D${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts
 fi
 }