[OE-core] [PATCH] image_types.bbclass: fix link creation failure if the target already exists

Petr Štetiar ynezz at true.cz
Fri Mar 2 22:01:38 UTC 2012


Richard Purdie <richard.purdie at linuxfoundation.org> [2012-03-02 13:20:40]:

> Thanks, that helps a lot. I'd tested "tar tar" and "tar.gz tar.bz2" but
> not that :). I think something like:
> 
> diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
> index 681571d..1bf59a5 100644
> --- a/meta/classes/image_types.bbclass
> +++ b/meta/classes/image_types.bbclass
> @@ -17,7 +17,8 @@ def get_imagecmds(d):
>                      types.append(basetype)
>                  if basetype not in cimages:
>                      cimages[basetype] = []
> -                cimages[basetype].append(ctype)
> +                if ctype not in cimages[basetype]:
> +                    cimages[basetype].append(ctype)
>                  break
>          if not basetype and type not in types:
>              types.append(type)
> 
> should fix this?

It's ok now. Thanks.

-- ynezz




More information about the Openembedded-core mailing list