summaryrefslogtreecommitdiff
path: root/git-dch
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2008-11-20 09:42:04 +0100
committerGuido Guenther <agx@sigxcpu.org>2008-11-21 10:49:24 +0100
commit82f3a5dcedd1d972171ccfafeceb9d8ff95f970e (patch)
treec9100a573967200b83450e24a47d978e3b1feb55 /git-dch
parentc9afde9f4881666687293a9059ed57c9ee0097b2 (diff)
downloadgit-buildpackage-82f3a5dcedd1d972171ccfafeceb9d8ff95f970e.tar.gz
git-buildpackage-82f3a5dcedd1d972171ccfafeceb9d8ff95f970e.tar.bz2
git-buildpackage-82f3a5dcedd1d972171ccfafeceb9d8ff95f970e.zip
case insentive matching for "bugnumbers"
since they can contain "Bug"
Diffstat (limited to 'git-dch')
-rwxr-xr-xgit-dch6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-dch b/git-dch
index 5df62bfa..d3564228 100755
--- a/git-dch
+++ b/git-dch
@@ -33,7 +33,7 @@ from gbp.command_wrappers import (Command, CommandExecFailed)
snapshot_re = re.compile("\s*\*\* SNAPSHOT build @(?P<commit>[a-z0-9]+)\s+\*\*")
author_re = re.compile('Author: (?P<author>.*) <(?P<email>.*)>')
bug_r = r'(?:bug)?\#?\s?\d+'
-bug_re = re.compile(bug_r)
+bug_re = re.compile(bug_r, re.I)
def system(cmd):
try:
@@ -190,7 +190,7 @@ def parse_commit(repo, commitid, options):
thanks = ''
closes = ''
bugs = {}
- bts_closes = re.compile(r'(?P<bts>%s):\s+%s' % (options.meta_closes, bug_r))
+ bts_closes = re.compile(r'(?P<bts>%s):\s+%s' % (options.meta_closes, bug_r), re.I)
commit = repo.show(commitid)
author, email = get_author(commit)
@@ -201,7 +201,7 @@ def parse_commit(repo, commitid, options):
line = line[4:]
m = bts_closes.match(line)
if m:
- bug_nums = [ bug.strip() for bug in bug_re.findall(line) ]
+ bug_nums = [ bug.strip() for bug in bug_re.findall(line, re.I) ]
try:
bugs[m.group('bts')] += bug_nums
except KeyError: