Rev 57: Show diagnostics about ppa watching. in http://people.canonical.com/~robertc/baz2.0/plugins/builder/blocking

Robert Collins robertc at robertcollins.net
Fri Oct 23 06:00:38 BST 2009


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

------------------------------------------------------------
revno: 57
revision-id: robertc at robertcollins.net-20091023050037-9951felpnvqap4z5
parent: robertc at robertcollins.net-20091023014639-0gqh0c7tpo5bs0co
committer: Robert Collins <robertc at robertcollins.net>
branch nick: blocking
timestamp: Fri 2009-10-23 16:00:37 +1100
message:
  Show diagnostics about ppa watching.
=== modified file 'ppa.py'
--- a/ppa.py	2009-10-22 05:17:01 +0000
+++ b/ppa.py	2009-10-23 05:00:37 +0000
@@ -50,9 +50,12 @@
     owner = launchpad.people[owner_name]
     archive = owner.getPPAByName(name=archive_name)
     end_states = ['failedtobuild', 'fullybuilt']
+    print "Waiting for", version, "of", package_name, "to build."
     while True:
         sourceRecords = [s for s in
-            archive.getPublishedSources(source_name=package_name)
+            archive.getPublishedSources(source_name=package_name)]
+        # print [s.source_package_version for s in sourceRecords]
+        sourceRecords = [s for s in sourceRecords
             if s.source_package_version == version]
         if not sourceRecords:
             time.sleep(60)




More information about the bazaar-commits mailing list