diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2008-11-06 16:23:32 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-11-06 16:23:32 +0000 |
commit | 436c5f4716bae47bf9ddddfe0cbaf595a3de46c7 (patch) | |
tree | f4f9a76d581903d2b62f58b490996552ed47d9e4 /meta/classes/rootfs_deb.bbclass | |
parent | 1e967ea93ee425dfca6857ec958e9a55160133ac (diff) | |
download | openembedded-core-436c5f4716bae47bf9ddddfe0cbaf595a3de46c7.tar.gz openembedded-core-436c5f4716bae47bf9ddddfe0cbaf595a3de46c7.tar.bz2 openembedded-core-436c5f4716bae47bf9ddddfe0cbaf595a3de46c7.tar.xz openembedded-core-436c5f4716bae47bf9ddddfe0cbaf595a3de46c7.zip |
classes: Add mechanism to install packages into images only if they've been built
Diffstat (limited to 'meta/classes/rootfs_deb.bbclass')
-rw-r--r-- | meta/classes/rootfs_deb.bbclass | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass index 55d2b920b..411a6c4e7 100644 --- a/meta/classes/rootfs_deb.bbclass +++ b/meta/classes/rootfs_deb.bbclass @@ -81,12 +81,20 @@ fakeroot rootfs_deb_do_rootfs () { if [ $? -ne 0 ]; then exit 1 fi - find ${IMAGE_ROOTFS} -name \*.dpkg-new | for i in `cat`; do - mv $i `echo $i | sed -e's,\.dpkg-new$,,'` - done done fi + rm ${WORKDIR}/temp/log.do_$target-attemptonly.${PID} + if [ ! -z "${PACKAGE_INSTALL_ATTEMPTONLY}" ]; then + for i in ${PACKAGE_INSTALL_ATTEMPTONLY}; do + apt-get install $i --force-yes --allow-unauthenticated >> ${WORKDIR}/temp/log.do_$target-attemptonly.${PID} || true + done + fi + + find ${IMAGE_ROOTFS} -name \*.dpkg-new | for i in `cat`; do + mv $i `echo $i | sed -e's,\.dpkg-new$,,'` + done + install -d ${IMAGE_ROOTFS}/${sysconfdir} echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version |