| Submitter | Richard Purdie |
|---|---|
| Date | March 2, 2012, 1:20 p.m. |
| Message ID | <1330694440.18076.1.camel@ted> |
| Download | mbox | patch |
| Permalink | /patch/22589/ |
| State | Accepted |
| Commit | b24d4bcde21b013e48eaffea5f3a70d8b1df1047 |
| Headers | show |
Comments
Richard Purdie <richard.purdie@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
Patch
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)