poky/scripts/lib
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
..
build_perf oe-buildperf-report: highlight large changes in the HTML report 2018-05-11 07:49:38 +01:00
checklayer checklayer: Avoid adding the layer if it is already present 2019-02-14 11:20:55 +00:00
devtool devtool: standard: Handle exporting generated config fragments 2019-04-09 13:44:39 +01:00
recipetool recipetool: fix unbound variable when fixed SRCREV can't be found 2019-05-08 12:15:17 +01:00
resulttool resulttool: add LTP compliance section 2019-04-29 14:16:30 +01:00
wic Revert "wic: Set a miniumum FAT16 volume size." 2019-04-26 10:09:08 +01:00
argparse_oe.py argparse_oe: Add int_positive type 2017-07-21 08:44:25 +01:00
buildstats.py lib/buildstats: Improve error message 2019-02-16 08:19:34 +00:00
scriptpath.py scripts: consolidate code to find bitbake path 2014-06-25 13:51:45 +01:00
scriptutils.py oe.scriptutils: enable color in a more flexible way 2019-03-06 10:39:25 +00:00