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'}
-
- def __init__( self ):
- # Tolimar: I'm not really sure, what the following line used to to
- # with btsutils, but I think it's not needed any more with
- # debianbts
- # self.bts.setUsers(['ftp.debian.org@packages.debian.org'])
-
+ arch_re: 'archs',
+ override_re: 'override'}
def unclassified_bugs(self):
"""
retval = ""
for classifier in self.classifiers.keys():
- if classifier.match(bug.summary):
+ if classifier.match(bug.subject):
retval = "usertag %s %s\n" % (bug.bug_num,
self.classifiers[classifier])
break
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
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()