Skip to content

Commit

Permalink
Builder: XML feed omits <message> from commits if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Dec 15, 2011
1 parent a08e0ad commit 907c098
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion distrib/builder/changes.py
Expand Up @@ -136,7 +136,8 @@ def generate(self, format):
print >> out, '<repositoryUrl>%s</repositoryUrl>' % entry.link
print >> out, '<sha1>%s</sha1>' % entry.hash
print >> out, '<title>%s</title>' % entry.subject
print >> out, '<message>%s</message>' % entry.message
if len(entry.message):
print >> out, '<message>%s</message>' % entry.message
print >> out, '</commit>'
print >> out, '</commits>'
out.close()
Expand Down
2 changes: 1 addition & 1 deletion distrib/builder/event.py
Expand Up @@ -214,7 +214,7 @@ def html_description(self, encoded=True):
if encoded: return '<![CDATA[' + msg + ']]>'
return msg

def xml_description():
def xml_description(self):
msg = '<build>'
msg += '<uniqueId>%i</uniqueId>' % self.number()
msg += '<startDate>%s</startDate>' % self.text_timestamp()
Expand Down

0 comments on commit 907c098

Please sign in to comment.