X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fbts_categorize.py;h=c8739af65618fa16ff2c569306f61a45e94dc975;hb=245c6549dbacaeab5ee36ec74372b1df8675b477;hp=4a803d569adafa3f851ec0778289cc8fb320c66f;hpb=dec160172b136c712dddf2c942ee03a52e8e0b88;p=dak.git diff --git a/dak/bts_categorize.py b/dak/bts_categorize.py index 4a803d56..c8739af6 100755 --- a/dak/bts_categorize.py +++ b/dak/bts_categorize.py @@ -79,10 +79,12 @@ class BugClassifier(object): rm_re = re.compile( "^RM" ) dak_re = re.compile( "^\[dak\]" ) arch_re = re.compile( "^\[Architectures\]" ) + override_re = re.compile( "^override" ) classifiers = { rm_re: 'remove', dak_re: 'dak', - arch_re: 'archs'} + arch_re: 'archs', + override_re: 'override'} def unclassified_bugs(self): """ @@ -116,7 +118,7 @@ class BugClassifier(object): if retval: log.info(retval) else: - log.debug("Unmatched: [%s] %s" % (bug.bug_num, bug.summary)) + log.debug("Unmatched: [%s] %s" % (bug.bug_num, bug.subject)) return retval @@ -160,8 +162,8 @@ def main(): if not Cnf.has_key(opt): Cnf[opt] = "" - packages = apt_pkg.ParseCommandLine(Cnf, arguments, sys.argv) - Options = Cnf.SubTree('BtsCategorize::Options') + packages = apt_pkg.parse_commandline(Cnf, arguments, sys.argv) + Options = Cnf.subtree('BtsCategorize::Options') if Options["Help"]: usage()