summaryrefslogtreecommitdiff
path: root/meta/packages/dpkg
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-01-23 16:15:06 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-01-23 16:15:06 +0000
commit7b6ad5b9fb0a004cba5a5ff59004aa795ddf0a87 (patch)
tree999ea988606f1aefa0e1dd414b56b632d9b0718a /meta/packages/dpkg
parent75f3ca5abb0d7a476a8926f2007bf40782326ce5 (diff)
downloadopenembedded-core-7b6ad5b9fb0a004cba5a5ff59004aa795ddf0a87.tar.gz
openembedded-core-7b6ad5b9fb0a004cba5a5ff59004aa795ddf0a87.tar.bz2
openembedded-core-7b6ad5b9fb0a004cba5a5ff59004aa795ddf0a87.zip
Fix postinstall scripts not to use IMAGE_ROOTFS direction by use D instead. Based on a patch from Carl Simonson <simonsonc@gmail.com>
Diffstat (limited to 'meta/packages/dpkg')
-rw-r--r--meta/packages/dpkg/dpkg.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/packages/dpkg/dpkg.inc b/meta/packages/dpkg/dpkg.inc
index 041b437abd..67c0781ce8 100644
--- a/meta/packages/dpkg/dpkg.inc
+++ b/meta/packages/dpkg/dpkg.inc
@@ -1,7 +1,7 @@
DESCRIPTION = "Package maintenance system for Debian."
LICENSE = "GPL"
SECTION = "base"
-PR = "r6"
+PR = "r7"
SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.gz \
file://ignore_extra_fields.patch;patch=1 \
@@ -19,13 +19,13 @@ DPKG_INIT_POSITION_slugos = "41"
pkg_postinst_dpkg () {
#!/bin/sh
if [ "x$D" != "x" ]; then
- install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
+ install -d $D/${sysconfdir}/rcS.d
# this happens at S98 where our good 'ole packages script used to run
echo -e "#!/bin/sh
dpkg --configure -a
rm -f /${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
- chmod 0755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
+ chmod 0755 $D/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
fi
}