[Lsb-messages] /var/www/bzr/lsb/devel/buildbot-config r330: Fix buildbot priority function.

Jeff Licquia licquia at linuxfoundation.org
Mon Jul 22 14:43:20 UTC 2013


------------------------------------------------------------
revno: 330
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: buildbot-config
timestamp: Mon 2013-07-22 10:43:20 -0400
message:
  Fix buildbot priority function.
  
  Don't overuse lambdas; we don't want a list of functions, but a list
  of results from that function.
modified:
  lsb_master.cfg
-------------- next part --------------
=== modified file 'lsb_master.cfg'
--- a/lsb_master.cfg	2013-07-11 13:42:36 +0000
+++ b/lsb_master.cfg	2013-07-22 14:43:20 +0000
@@ -288,8 +288,8 @@
 # example).
 
 def prioritize(buildmaster, builders):
-    dependencies = [lambda x: isinstance(x, tuple) and x[0] or x
-                    for x in reduce(lambda x, y: x + y[1], 
+    dependencies = [isinstance(x, tuple) and x[0] or x
+                    for x in reduce(lambda x, y: x + y[1],
                                     lsb_dependencies.items(), [])]
 
     priorities = ["build-sdk"] + dependencies



More information about the lsb-messages mailing list