diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-03-01 09:20:29 +0100 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2010-03-08 11:26:29 -0700 |
commit | 060ef3d957615b7eb1209dc0d01ebeb53f8c4edc (patch) | |
tree | b002d08577808d68fbed77af1d42bb337f3eac55 | |
parent | 3062e96181fe845cfd286990b0216888ddd3d228 (diff) | |
download | bitbake-060ef3d957615b7eb1209dc0d01ebeb53f8c4edc.tar.gz |
cooker: bail out early if no files to build
This prevents a misleading backtrace:
ERROR: no files to build.
Command execution failed: Traceback (most recent call last):
File ".../bitbake/build/lib/bb/command.py", line 83, in runAsyncCommand
self.cooker.updateCache()
File ".../bitbake/build/lib/bb/cooker.py", line 779, in updateCache
if not self.parser.parse_next():
File ".../bitbake/build/lib/bb/cooker.py", line 969, in parse_next
cooker.bb_cache.sync()
UnboundLocalError: local variable 'cooker' referenced before assignment
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Chris Larson <clarson@kergoth.com>
-rw-r--r-- | lib/bb/cooker.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 938bdeaae..bf174859c 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -832,7 +832,8 @@ class BBCooker: files = self.get_bbfiles() if not len(files): - bb.msg.error(bb.msg.domain.Collection, "no files to build.") + bb.msg.error(bb.msg.domain.Collection, "no recipe files to build, check your BBPATH and BBFILES?") + bb.event.fire(CookerExit(), self.configuration.event_data) newfiles = [] for f in files: |