aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kahle <tomka@gentoo.org>2012-08-03 13:17:30 +0200
committerThomas Kahle <tomka@gentoo.org>2012-08-03 13:17:30 +0200
commitd1f2513e92bdd31527d2f4bbeff8d035d96b6186 (patch)
treee8a1feda87d75bcb7afd502953e356c1aaaf2ba4 /scripts
parentfix -u and -d options (diff)
downloadtatt-d1f2513e92bdd31527d2f4bbeff8d035d96b6186.tar.gz
tatt-d1f2513e92bdd31527d2f4bbeff8d035d96b6186.tar.bz2
tatt-d1f2513e92bdd31527d2f4bbeff8d035d96b6186.zip
Search for package atoms only in the bug's title (fix issue #7)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tatt3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/tatt b/scripts/tatt
index c451dcc..d586d12 100755
--- a/scripts/tatt
+++ b/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
##########################