diff -r a0f5dc257779 -r 0d12d79bd42d sbsv2/raptor/python/raptor_meta.py --- a/sbsv2/raptor/python/raptor_meta.py Mon Apr 26 09:44:21 2010 +0100 +++ b/sbsv2/raptor/python/raptor_meta.py Thu May 13 13:53:03 2010 +0100 @@ -1071,9 +1071,12 @@ if (re.search(r'^\s*START ',extensionLine, re.I)): start = extensionLine elif re.search(r'^\s*END\s*$',extensionLine, re.I): - extensionObjects.append(Extension(self.filename, start, options, aBuildPlatform, self.__Raptor)) - start = "" - options = [] + if start == "": + self.log.Error("unmatched END statement in %s section", aType, bldinf=str(self.filename)) + else: + extensionObjects.append(Extension(self.filename, start, options, aBuildPlatform, self.__Raptor)) + start = "" + options = [] elif re.search(r'^\s*$',extensionLine, re.I): continue elif start: @@ -3296,7 +3299,7 @@ self.__Raptor.Debug("Skipping %s", str(m.getMakefileName())) continue elif projectname in self.projectList: - projectList.remove(projectname) + self.projectList.remove(projectname) self.__Raptor.Debug("%i makefile extension makefiles for %s", len(makefileList), str(componentNode.component.bldinf.filename))