[oe] [PATCH 2/3] package_ipk: optimize do_package_update_index_ipk

Phil Blundell philb at gnu.org
Thu Jun 18 10:57:06 UTC 2009


On Thu, 2009-06-18 at 14:11 +0400, Roman I Khimov wrote:
> +		for ipk_path in $arch ${BUILD_ARCH}-$arch-sdk ${SDK_SYS}-sdk-$arch; do
> +			NEWEST_PACKAGE=`ls -t ${DEPLOY_DIR_IPK}/$ipk_path/*.ipk | head -n 1`
> +			if [ -n "$NEWEST_PACKAGE" ] && [ "$NEWEST_PACKAGE" -nt "${DEPLOY_DIR_IPK}/$ipk_path/Packages" ]; then
> +				touch ${DEPLOY_DIR_IPK}/$ipk_path/Packages
> +				ipkg-make-index -r ${DEPLOY_DIR_IPK}/$ipk_path/Packages -p ${DEPLOY_DIR_IPK}/$ipk_path/Packages -l ${DEPLOY_DIR_IPK}/$ipk_path/Packages.filelist -m ${DEPLOY_DIR_IPK}/$ipk_path/
> +			fi
> +		done

Thanks for the patch.  This looks good to me.

p.






More information about the Openembedded-devel mailing list