[OE-core] [PATCH] rootfs_ipk: respect ONLINE_PACKAGE_MANAGEMENT
Phil Blundell
pb at pbcl.net
Tue May 17 13:55:49 UTC 2011
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 <philb at gnu.org>
---
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
}
--
1.7.1
More information about the Openembedded-core
mailing list