Rev 58: Only care about well supplied architectures in watch-ppa. in http://people.canonical.com/~robertc/baz2.0/plugins/builder/blocking

Robert Collins robertc at robertcollins.net
Fri Oct 23 07:08:38 BST 2009


At http://people.canonical.com/~robertc/baz2.0/plugins/builder/blocking

------------------------------------------------------------
revno: 58
revision-id: robertc at robertcollins.net-20091023060833-1nmiy4dkyi8uqxam
parent: robertc at robertcollins.net-20091023050037-9951felpnvqap4z5
committer: Robert Collins <robertc at robertcollins.net>
branch nick: blocking
timestamp: Fri 2009-10-23 17:08:33 +1100
message:
  Only care about well supplied architectures in watch-ppa.
=== modified file 'ppa.py'
--- a/ppa.py	2009-10-23 05:00:37 +0000
+++ b/ppa.py	2009-10-23 06:08:33 +0000
@@ -70,6 +70,15 @@
         print "%s: %s" % (pkg.display_name, buildSummaries['status'])
         if buildSummaries['status'] in end_states:
             break
+        if buildSummaries['status'] == 'NEEDSBUILD':
+            # We ignore non-virtual PPA architectures that are sparsely
+            # supplied with buildds.
+            wait = False
+            for build in buildSummaries['builds']:
+                if build['arch_tag'] in ['amd64', 'i386', 'lpia', 'armel']:
+                    wait = True
+            if not wait:
+                break
         time.sleep(60)
     return (buildSummaries['status'] == 'fullybuilt' and 
         pkg.status.lower() == 'published')




More information about the bazaar-commits mailing list