Bug 2713

Summary: bitbake -b option returns errors without pointing the error cause
Product: [Build System, Metadata & Runtime] BitBake Reporter: Laurentiu Serban <laurentiu.serban>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: Undecided CC: poky.bs.watcher, poky.watcher
Version: 1.1.2   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Laurentiu Serban 2012-07-06 21:54:26 UTC
If the recipe does not exist the error returned looks like below:
[lserban@localhost build]$ bitbake -b sstest_
WARNING: Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.
ERROR: Unable to match sstest_ (0 matches found):
ERROR: Command execution failed: Traceback (most recent call last):
  File "/home/lserban/work/edison/bitbake/lib/bb/command.py", line 102, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File "/home/lserban/work/edison/bitbake/lib/bb/command.py", line 197, in buildFile
    command.cooker.buildFile(bfile, task)
  File "/home/lserban/work/edison/bitbake/lib/bb/cooker.py", line 982, in buildFile
    fn = self.matchFile(fn)
  File "/home/lserban/work/edison/bitbake/lib/bb/cooker.py", line 959, in matchFile
    raise MultipleMatches
MultipleMatches
Comment 1 Richard Purdie 2012-07-09 11:31:28 UTC
This bug was fixed in 1.2 as part of the error handling overhaul work. I'm not sure it makes sense to backport this to 1.1 unless there are specific requests from the community for it. I checked and master does not have this issue.