2010/9/20 Holger Freyther <[email protected]>
> On 09/20/2010 05:59 AM, Björn Krombholz wrote:
> > @@ -1,4 +1,4 @@
> > -DEPENDS_prepend = "$...@["qt4-embedded ", ""][(bb.data.getVar('PN', d, 1) 
> > == 'qt4-embedded')]}"
> > +DEPENDS_prepend = "$...@["qt4-embedded ", ""][(bb.data.getVar('PN', d, 
> > 1)[:12] == 'qt4-embedded')]}"
> >  inherit qmake2
>
> use startsWith and avoid the extra array allocation?

Array slicing just provides a new mapping onto the original array and
doesn't copy any data.

I chose this syntax to make it consistent with qt4x11.bbclass

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to