]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: Fix list concatenation when using edit
authorAlex Kiernan <alex.kiernan@gmail.com>
Fri, 12 Jun 2020 13:36:40 +0000 (14:36 +0100)
committerSteve Sakoman <steve@sakoman.com>
Thu, 18 Jun 2020 16:23:00 +0000 (06:23 -1000)
commit9a45c7fb2d4491d2d34500acef8ea6dcd4f5d9d4
treeb70e03e78c32f7bdd6ca2a98080e2e261197f473
parent0e4985236dd7d2e92576fb30b70bc434a7ecd367
recipetool: Fix list concatenation when using edit

If there are multiple appends, ensure we concatenate compatible things:

Traceback (most recent call last):
  File "/home/akiernan/poky/scripts/recipetool", line 111, in <module>
    ret = main()
  File "/home/akiernan/poky/scripts/recipetool", line 100, in main
    ret = args.func(args)
  File "/home/akiernan/poky/scripts/lib/recipetool/edit.py", line 38, in edit
    return scriptutils.run_editor([recipe_path] + appends, logger)
TypeError: can only concatenate list (not "tuple") to list

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4c1e74bdf4922519d168434afd69c9bebcb9bd82)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
scripts/lib/recipetool/edit.py