summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-05-31 11:31:44 +0000
committerRichard Purdie <richard@openedhand.com>2007-05-31 11:31:44 +0000
commit1ad7c7b546a96a2fce84f188ac30200a6cdf66bf (patch)
tree708097e31808575f6b18d15d6ed0609d9b313ffb /bitbake/lib/bb/cooker.py
parent2a41ad55494430b9789e07bb976af3d9e6a704eb (diff)
downloadopenembedded-core-1ad7c7b546a96a2fce84f188ac30200a6cdf66bf.tar.gz
openembedded-core-1ad7c7b546a96a2fce84f188ac30200a6cdf66bf.tar.bz2
openembedded-core-1ad7c7b546a96a2fce84f188ac30200a6cdf66bf.zip
bitbake: Exit if parsing errors occur
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1832 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 1868b268a3..77f71a7169 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -597,7 +597,7 @@ class BBCooker:
return (finalfiles, masked)
def parse_bbfiles(self, filelist, masked, progressCallback = None):
- parsed, cached, skipped = 0, 0, 0
+ parsed, cached, skipped, error = 0, 0, 0, 0
for i in xrange( len( filelist ) ):
f = filelist[i]
@@ -640,6 +640,7 @@ class BBCooker:
self.bb_cache.sync()
raise
except Exception, e:
+ error += 1
self.bb_cache.remove(f)
bb.msg.error(bb.msg.domain.Collection, "%s while parsing %s" % (e, f))
except:
@@ -651,3 +652,6 @@ class BBCooker:
bb.msg.note(1, bb.msg.domain.Collection, "Parsing finished. %d cached, %d parsed, %d skipped, %d masked." % ( cached, parsed, skipped, masked ))
self.bb_cache.sync()
+
+ if error > 0:
+ bb.msg.fatal(bb.msg.domain.Collection, "Parsing errors found, exiting...")