[Lsb-messages] /var/www/bzr/lsb/devel/buildbot-config r230: Handle cases where the build type doesn't get set.

Jeff Licquia licquia at linuxfoundation.org
Thu Mar 22 16:42:01 UTC 2012


------------------------------------------------------------
revno: 230
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: buildbot-config
timestamp: Thu 2012-03-22 12:42:01 -0400
message:
  Handle cases where the build type doesn't get set.
modified:
  lfbuildbot.py
-------------- next part --------------
=== modified file 'lfbuildbot.py'
--- a/lfbuildbot.py	2012-03-22 15:59:09 +0000
+++ b/lfbuildbot.py	2012-03-22 16:42:01 +0000
@@ -251,10 +251,9 @@
 
         # Set result type, for the upload tarball name.
 
-        if build_type == "normal":
-            result_type = calc_branch_name
-        else:
-            result_type = calc_branch_name + "-" + build_type
+        result_type = calc_branch_name
+        if build_type and build_type != "normal":
+            result_type = result_type + "-" + build_type
         self.setProperty("result_type", result_type)
 
     def start(self):



More information about the lsb-messages mailing list