poky/scripts/lib/recipetool
Chang Rebecca Swee Fun 5778e35378 scriptutils: pass in logger as parameter
logger was not defined in scriptutils.py based on the
observation in python traceback.

Traceback (most recent call last):
  File "/workdir/poky/scripts/devtool", line 351, in <module>
    ret = main()
  File "/workdir/poky/scripts/devtool", line 338, in main
    ret = args.func(args, config, basepath, workspace)
  File "/workdir/poky/scripts/lib/devtool/utilcmds.py", line 55, in
edit_recipe
    return scriptutils.run_editor(find_recipe(args, config, basepath,
workspace))
  File "/workdir/poky/scripts/lib/scriptutils.py", line 141, in
run_editor
    logger.error("Execution of '%s' failed: %s" % (editor, exc))
NameError: name 'logger' is not defined

We pass in logger as parameter to run_editor() from where it has
been called (devtool/utilcmds.py and recipetool/newappend.py),
which both modules already has logger setup.

(From OE-Core rev: 21f04b61973dd9029f0e6bff5445e31cd762bf32)

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-07-21 22:51:37 +01:00
..
__init__.py scripts/recipetool: Add a recipe auto-creation script 2014-12-23 10:18:15 +00:00
append.py scripts: remove True option to getVarFlag calls 2016-12-16 10:23:23 +00:00
create_buildsys_python.py scripts: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
create_buildsys.py recipetool: create: skip values extracted from spec files containing macros 2017-05-23 17:45:36 +01:00
create_kernel.py scripts: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
create_kmod.py recipetool: create: avoid decoding errors with Python 3 2016-07-08 09:57:24 +01:00
create_npm.py recipetool: create: refactor code for ensuring npm is available 2017-07-21 08:44:25 +01:00
create.py recipetool: create: refactor code for ensuring npm is available 2017-07-21 08:44:25 +01:00
newappend.py scriptutils: pass in logger as parameter 2017-07-21 22:51:37 +01:00
setvar.py devtool / recipetool: use tinfoil parsing API 2016-12-14 12:30:49 +00:00