[OE-core] [PATCH] rootfs_ipk: respect ONLINE_PACKAGE_MANAGEMENT

Richard Purdie richard.purdie at linuxfoundation.org
Tue May 17 14:24:33 UTC 2011


On Tue, 2011-05-17 at 14:55 +0100, Phil Blundell wrote:
> 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 	
>  }

What's wrong with:

ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; "

as used in the minimal image? The nice thing about this is it works over
several package backends too...

Cheers,

Richard





More information about the Openembedded-core mailing list