From patchwork Tue May 17 13:55:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: rootfs_ipk: respect ONLINE_PACKAGE_MANAGEMENT Date: Tue, 17 May 2011 13:55:49 -0000 From: Phil Blundell X-Patchwork-Id: 4255 Message-Id: <1305640549.2429.226.camel@phil-desktop> To: Patches and discussions about the oe-core layer This makes it work more or less the same way as the current tip of oe master, except that I didn't copy over the behaviour for O_P_M="add" because it seemed slightly bogus to me. Signed-off-by: Phil Blundell --- meta/classes/rootfs_ipk.bbclass | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index 5727d15..c7c8325 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass @@ -69,8 +69,16 @@ fakeroot rootfs_ipk_do_rootfs () { echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version ${ROOTFS_POSTPROCESS_COMMAND} - - rm -f ${IMAGE_ROOTFS}${opkglibdir}/lists/* + + case "${ONLINE_PACKAGE_MANAGEMENT}" in + none) + rm -rf ${IMAGE_ROOTFS}${opkglibdir} + ;; + + *) + rm -f ${IMAGE_ROOTFS}${opkglibdir}/lists/* + ;; + esac log_check rootfs }