aboutsummaryrefslogtreecommitdiff
path: root/gbp/scripts/rpm_ch.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/scripts/rpm_ch.py')
-rw-r--r--gbp/scripts/rpm_ch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/scripts/rpm_ch.py b/gbp/scripts/rpm_ch.py
index 9212f71..9cb99a2 100644
--- a/gbp/scripts/rpm_ch.py
+++ b/gbp/scripts/rpm_ch.py
@@ -176,7 +176,7 @@ def guess_commit(section, repo, options):
header = section.header
# Try to parse the fields from the header revision
- rev_re = '^%s$' % re.sub(r'%\((\S+?)\)s', r'(?P<\1>\S+)',
+ rev_re = '^%s$' % re.sub(r'%\((\S+?)\)s', r'(?P<\1>\\S+)',
options.changelog_revision)
match = re.match(rev_re, header['revision'], re.I)
fields = match.groupdict() if match else {}