<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-infrastructure.

</pre>
<p><a href="https://github.com/macports/macports-infrastructure/commit/08cff68ae7d61144cfdfe25586d70d9fbb4a7ef9">https://github.com/macports/macports-infrastructure/commit/08cff68ae7d61144cfdfe25586d70d9fbb4a7ef9</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 08cff68  buildbot cfg: getNextBuildOnPortBuilder fixes
</span>08cff68 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 08cff68ae7d61144cfdfe25586d70d9fbb4a7ef9
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sun Jan 8 04:58:34 2023 +1100

<span style='display:block; white-space:pre;color:#404040;'>    buildbot cfg: getNextBuildOnPortBuilder fixes
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Don't use math.inf which doesn't exist in python 2. Don't compare the
</span><span style='display:block; white-space:pre;color:#404040;'>    first request's priority with itself.
</span>---
 buildbot/master.cfg | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/buildbot/master.cfg b/buildbot/master.cfg
</span><span style='display:block; white-space:pre;color:#808080;'>index 99c8b53..0ae2650 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/buildbot/master.cfg
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/buildbot/master.cfg
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -897,11 +897,11 @@ def getPriority(request):
</span>     if request.properties and request.properties.hasProperty('priority'):
         return float(request.properties.getProperty('priority'))
     else:
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        return math.inf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        return float('inf')
</span> 
 def getNextBuildOnPortBuilder(builder, requests):
     nextBuild = requests[0]
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    for request in requests:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    for request in requests[1:]:
</span>         if getPriority(request) < getPriority(nextBuild):
             nextBuild = request
     return nextBuild
</pre><pre style='margin:0'>

</pre>