Skip to content

Commit

Permalink
Set ss.patch_info to None if there is no patch
Browse files Browse the repository at this point in the history
Fixes failure of the web status.
  • Loading branch information
djmitche committed Jun 15, 2011
1 parent 75aa463 commit 52ac966
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions master/buildbot/sourcestamp.py
Expand Up @@ -100,12 +100,14 @@ def _make_ss(cls, ssid, ssdict, master):
sourcestamp.revision = ssdict['revision']
sourcestamp.project = ssdict['project']
sourcestamp.repository = ssdict['repository']
sourcestamp.patch_info = (ssdict['patch_author'], ssdict['patch_comment'])

sourcestamp.patch = None
if ssdict['patch_body']:
# note that this class does not store the patch_subdir
sourcestamp.patch = (ssdict['patch_level'], ssdict['patch_body'])
sourcestamp.patch = (ssdict['patch_level'],
ssdict['patch_body'])
sourcestamp.patch_info = (ssdict['patch_author'],
ssdict['patch_comment'])

if ssdict['changeids']:
# sort the changeids in order, oldest to newest
Expand Down

0 comments on commit 52ac966

Please sign in to comment.