[OE-core] [PATCH 1/1] utils.bbclass: make FILESEXTRAPATHS colon delimited

Phil Blundell pb at pbcl.net
Fri May 27 09:37:32 UTC 2011


On Thu, 2011-05-26 at 20:16 -0700, Darren Hart wrote:
> So by changing from split() to split(":") we change the behavior of
> split when operating on empty strings, requiring us to special case the
> output. Rather obnoxious wouldn't you say?

Yes, that is an annoying misfeature.  The other related thing to watch
out for is this:

>>> print " a b ".split()
['a', 'b']
>>> print ":a:b:".split(":")
['', 'a', 'b', '']
>>> 

... in other words, if you make the separator be anything other than a
space, you need to take special care to strip off any null elements that
might have been accidentally generated at the start and end.

p.






More information about the Openembedded-core mailing list