cooker.py: Fix case of -b option with a full filepath

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2010-08-04 15:38:35 +01:00
parent 8105d4381f
commit 16d299c6ce
1 changed files with 1 additions and 1 deletions

View File

@ -588,11 +588,11 @@ class BBCooker:
"""
bf = os.path.abspath(buildfile)
(filelist, masked) = self.collect_bbfiles()
try:
os.stat(bf)
return [bf]
except OSError:
(filelist, masked) = self.collect_bbfiles()
regexp = re.compile(buildfile)
matches = []
for f in filelist: