poky/scripts/lib/recipetool
Alex Kiernan 568f0ab886 recipetool: fix unbound variable when fixed SRCREV can't be found
If attempting to find a fixed SRCREV fails because the directory doesn't exit,
avoid failing with:

  Traceback (most recent call last):
    File "/home/vagrant/poky/scripts/recipetool", line 121, in <module>
      ret = main()
    File "/home/vagrant/poky/scripts/recipetool", line 110, in main
      ret = args.func(args)
    File "/home/vagrant/poky/scripts/lib/recipetool/create.py", line 707, in create_recipe
      srcrev = stdout.rstrip()
  UnboundLocalError: local variable 'stdout' referenced before assignment

Fixes: 000480c42797 ("recipetool / devtool: set a fixed SRCREV by default when fetching from git")
(From OE-Core rev: 8e4b301573071ea04911b0df6533c25bc4596b93)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-08 12:15:17 +01:00
..
__init__.py scripts/recipetool: Add a recipe auto-creation script 2014-12-23 10:18:15 +00:00
append.py logging: use warning instead warn 2018-07-26 13:16:40 +01:00
create_buildsys_python.py recipetool: create: fix failure handling included dicts 2017-11-21 13:06:12 +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 logging: use warning instead warn 2018-07-26 13:16:40 +01:00
create_npm.py recipetool: add missed module 2019-04-12 09:29:06 +01:00
create.py recipetool: fix unbound variable when fixed SRCREV can't be found 2019-05-08 12:15:17 +01:00
edit.py recipetool: add 'edit' subcommand 2018-07-04 00:02:16 +01:00
newappend.py logging: use warning instead warn 2018-07-26 13:16:40 +01:00
setvar.py devtool / recipetool: use tinfoil parsing API 2016-12-14 12:30:49 +00:00