Browse files

Search for package atoms only in the bug's title (fix issue #7)

  • Loading branch information...
1 parent 6462bdc commit d1f2513e92bdd31527d2f4bbeff8d035d96b6186 @tom111 committed Aug 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/tatt
View
3 scripts/tatt
@@ -140,6 +140,7 @@ if options.bugnum:
p1 = Popen(['bugz', 'get', myJob.bugnumber, '-n'], stdout=PIPE)
# Instead we now capture everything:
bugraw = p1.communicate()[0]
+ bugtitle = [l for l in bugraw.splitlines() if 'Title' in l][0]
if re.search('KEYWORDREQ', bugraw):
# This is a keywording bug:
print ("Keywording bug detected.")
@@ -153,7 +154,7 @@ if options.bugnum:
exit(1)
# If myJob.packageList is still empty we search in the bug-title
if myJob.packageList==None:
- myJob.packageList = packageFinder.findPackages(bugraw, re.compile(config['atom-regexp']))
+ myJob.packageList = packageFinder.findPackages(bugtitle, re.compile(config['atom-regexp']))
# joint code for -f and -b
##########################

0 comments on commit d1f2513

Please sign in to comment.