[bitbake-devel] [PATCH] bitbake: normalize build targets

Christopher Larson clarson at kergoth.com
Wed Oct 14 22:20:29 UTC 2015


On Wed, Oct 14, 2015 at 1:41 AM, Ed Bartosh <ed.bartosh at linux.intel.com>
wrote:

> +        for target in fulltargetlist:
> +            if ":" in target:
> +                if ":do_" not in target:
> +                    target = "%s:do_%s" % tuple(target.split(":"))
>

I know it's an unlikely and theoretical case, but just in case the user
asks to build foo:: or something, we wouldn't want to explode horribly with
a traceback. It's best to do target.split(":", 1) here, so you know we'll
get 2 values for the format strings, no more.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20151014/583944e7/attachment-0002.html>


More information about the bitbake-devel mailing list