# HG changeset patch # User Richard Taylor # Date 1264694785 0 # Node ID b601167a81890199e332f8a2d371b759ca32d39b # Parent eff54c65de8b27cc71b85142b6616ddee05a4bd2 sf bug 1519: unescaped entities in XML logs (from make errors) diff -r eff54c65de8b -r b601167a8189 sbsv2/raptor/python/plugins/filter_broken.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/python/plugins/filter_broken.py Thu Jan 28 16:06:25 2010 +0000 @@ -0,0 +1,48 @@ +# +# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# Example of a Filter class using the SAX parser base class +# + +import filter_interface + +class FilterBroken(filter_interface.FilterSAX): + + def startDocument(self): + self.first = True + + def startElement(self, name, attributes): + pass + + def characters(self, char): + pass + + def endElement(self, name): + pass + + def endDocument(self): + pass + + def error(self, exception): + pass + + def fatalError(self, exception): + if self.first: + print "fatal error:", str(exception) + self.first = False + + def warning(self, exception): + pass + +# the end diff -r eff54c65de8b -r b601167a8189 sbsv2/raptor/python/raptor_make.py --- a/sbsv2/raptor/python/raptor_make.py Tue Jan 26 14:25:28 2010 +0000 +++ b/sbsv2/raptor/python/raptor_make.py Thu Jan 28 16:06:25 2010 +0000 @@ -497,12 +497,22 @@ universal_newlines=True, env=makeenv) stream = p.stdout - + inRecipe = False line = " " while line: line = stream.readline() - self.raptor.out.write(line) - + + if line.startswith(" + + + + + +