Rev 24: handle product series that are not registered in http://bazaar.launchpad.net/~canonical-bazaar/udd/hottest100

John Arbash Meinel john at arbash-meinel.com
Tue Jan 26 12:39:14 GMT 2010


At http://bazaar.launchpad.net/~canonical-bazaar/udd/hottest100

------------------------------------------------------------
revno: 24
revision-id: john at arbash-meinel.com-20100126123846-fr9r1ipa99x4p1kh
parent: jelmer at samba.org-20100126122644-8xuxiyen2k1wwpr5
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: hottest100
timestamp: Tue 2010-01-26 06:38:46 -0600
message:
  handle product series that are not registered
-------------- next part --------------
=== modified file 'check-hottest.py'
--- a/check-hottest.py	2010-01-26 12:26:44 +0000
+++ b/check-hottest.py	2010-01-26 12:38:46 +0000
@@ -180,9 +180,12 @@
             package_branch_url, age.days, source_package_version,
             package_status))
         source_package = published_source.distro_series.getSourcePackage(name=package.name)
+        if source_package.productseries is None:
+            categorize('missing_upstream_link', package)
+            continue
         source_branch = source_package.productseries.branch
         if source_branch is None:
-            categorize('missing_upstream_link', package)
+            categorize('missing_upstream_branch', package)
             continue
         package.upstream_branch_url = source_branch.bzr_identity
         try:



More information about the bazaar-commits mailing list