Rev 48: Turn tag based categories into upstream categories as well. in http://bazaar.launchpad.net/~canonical-bazaar/udd/hottest100

John Arbash Meinel john at arbash-meinel.com
Tue Jan 26 16:30:58 GMT 2010


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

------------------------------------------------------------
revno: 48
revision-id: john at arbash-meinel.com-20100126163032-o9wb4aff5ojd3z18
parent: jelmer at samba.org-20100126162416-hdmjcpdkua7gd3wa
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: hottest100
timestamp: Tue 2010-01-26 10:30:32 -0600
message:
  Turn tag based categories into upstream categories as well.
  
  Add package-bug: and upstream-bug: categories.
-------------- next part --------------
=== modified file 'check-hottest.py'
--- a/check-hottest.py	2010-01-26 16:23:33 +0000
+++ b/check-hottest.py	2010-01-26 16:30:32 +0000
@@ -144,6 +144,7 @@
     for i, package in enumerate(packages):
         output_stream.flush()
         output_stream.write('%s\n' % (package.name,))
+        pb.update("checking %s" % (package.name), i+1, len(packages))
         # package may be explicitly blocked in the input data
         if 'old-version' in package.tags:
             package_categories.categorize('old', package)
@@ -151,21 +152,39 @@
             continue
         if 'metapackage' in package.tags:
             package_categories.categorize('meta', package)
+            upstream_branch_categories.categorize('metapackage', package)
             continue
         if 'special' in package.tags:
             package_categories.categorize('special', package)
+            upstream_branch_categories.categorize('special', package)
             continue
         if 'devfocus' in package.tags:
             package_categories.categorize('devfocus', package)
+            upstream_branch_categories.categorize('devfocus', package)
             continue
         if 'hg-import' in package.tags:
             package_categories.categorize('hg', package)
+            upstream_branch_categories.categorize('hg', package)
             continue
         if 'nested-trees' in package.tags:
             package_categories.categorize('nested-trees', package)
+            upstream_branch_categories.categorize('nested-trees', package)
             continue
         if 'colocated' in package.tags:
             package_categories.categorize('colocated', package)
+            upstream_branch_categories.categorize('colocated', package)
+            continue
+        known_buggy = False
+        for tag in package.tags:
+            if tag.startswith('package-bug:'):
+                # This package import has a known bug
+                package_categories.categorize(tag, package)
+                known_buggy = True
+            if tag.startswith('upstream-bug:'):
+                # This branch import has a known bug
+                upstream_branch_categories.categorize(tag, package)
+                known_buggy = True
+        if known_buggy:
             continue
         pb.update("checking %s" % (package.name), i+1, len(packages))
         try:



More information about the bazaar-commits mailing list