[OE-core] [PATCH 3/3] recipetool: create: being able to set branch when revision is provided

Burton, Ross ross.burton at intel.com
Thu Jul 20 09:50:24 UTC 2017


On 13 July 2017 at 04:33, Chang Rebecca Swee Fun <
rebecca.swee.fun.chang at intel.com> wrote:

>      if not srcuri:
>          lines_before.append('# No information for SRC_URI yet (only an
> external source tree was specified)')
> +    # Check if users has provide a branch
> +    append_branch = branch_re.search(srcuri)
> +    if branch and not append_branch:
> +        # Append the correct branch into SRC_URI
> +        srcuri += (';branch=%s' % str(branch))
>

Traceback (most recent call last):
  File
"TOPDIR/tmp/work/qemumips-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/scripts/recipetool",
line 121, in <module>
    ret = main()
  File
"TOPDIR/tmp/work/qemumips-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/scripts/recipetool",
line 110, in main
    ret = args.func(args)
  File
"TOPDIR/tmp/work/qemumips-poky-linux/core-image-minimal/1.0-r0/testsdkext/layers/build/scripts/lib/recipetool/create.py",
line 638, in create_recipe
    append_branch = branch_re.search(srcuri)
UnboundLocalError: local variable 'branch_re' referenced before assignment

Also this conflicts with other things in master, so can you rebase when
fixing this.

Cheers,
Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170720/d7b71461/attachment-0002.html>


More information about the Openembedded-core mailing list