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 <[email protected]>
---
 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


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to