[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    [OE-core] [PATCH 2/3] image_types.bbclass: properly support IMAGE_LINK_NAME as empty
From:       richard.purdie () linuxfoundation ! org (Richard Purdie)
Date:       2012-02-29 12:56:15
Message-ID: 1330520175.24508.39.camel () ted
[Download RAW message or body]

On Wed, 2012-02-29 at 05:41 +0000, Otavio Salvador wrote:
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
> ---
>  meta/classes/image_types.bbclass |   14 +++++++++-----
>  1 files changed, 9 insertions(+), 5 deletions(-)
> 
> diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
> index 74071c1..f9ed49f 100644
> --- a/meta/classes/image_types.bbclass
> +++ b/meta/classes/image_types.bbclass
> @@ -25,7 +25,9 @@ def get_imagecmds(d):
>              types.append("ext3")
>          types.remove("live")
>  
> -    cmds += "	rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.*"
> +    if len(d.getVar('IMAGE_LINK_NAME', True)) > 0:
> +        cmds += "	rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.*"
> +

I took this but I removed the unneeded len() above.

Cheers,

Richard




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic