From 52ac966c169256e4af28d2fb35a6a84c07c2ea7b Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Wed, 15 Jun 2011 11:42:31 -0500 Subject: [PATCH] Set ss.patch_info to None if there is no patch Fixes failure of the web status. --- master/buildbot/sourcestamp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/master/buildbot/sourcestamp.py b/master/buildbot/sourcestamp.py index 7bc99364169..fb8f5a127fd 100644 --- a/master/buildbot/sourcestamp.py +++ b/master/buildbot/sourcestamp.py @@ -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