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_rpm.bbclass | |
parent | 1e967ea93ee425dfca6857ec958e9a55160133ac (diff) | |
download | poky-436c5f4716bae47bf9ddddfe0cbaf595a3de46c7.tar.gz |
classes: Add mechanism to install packages into images only if they've been built
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index e3697cb12c..dcdd37c8ee 100644 --- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass | |||
@@ -110,6 +110,10 @@ EOF | |||
110 | fakechroot yum ${YUMARGS} -y install ${PACKAGE_INSTALL} | 110 | fakechroot yum ${YUMARGS} -y install ${PACKAGE_INSTALL} |
111 | fi | 111 | fi |
112 | 112 | ||
113 | if [ ! -z "${PACKAGE_INSTALL_ATTEMPTONLY}" ]; then | ||
114 | fakechroot yum ${YUMARGS} -y install ${PACKAGE_INSTALL_ATTEMPTONLY} > ${WORKDIR}/temp/log.do_$target-attemptonly.${PID} || true | ||
115 | fi | ||
116 | |||
113 | # Add any recommended packages to the image | 117 | # Add any recommended packages to the image |
114 | # (added as an extra script since yum itself doesn't support this) | 118 | # (added as an extra script since yum itself doesn't support this) |
115 | yum-install-recommends.py ${IMAGE_ROOTFS} "fakechroot yum ${YUMARGS} -y install" | 119 | yum-install-recommends.py ${IMAGE_ROOTFS} "fakechroot yum ${YUMARGS} -y install" |