diff options
author | biao716.wang <biao716.wang@samsung.com> | 2023-04-25 15:20:41 +0900 |
---|---|---|
committer | biao716.wang <biao716.wang@samsung.com> | 2023-05-04 13:05:43 +0900 |
commit | 95e33623ea4c69c1ce3360904f053d5a1a172ed3 (patch) | |
tree | 2427207099742f930570e5a2a500052bacb07908 /gbp/scripts/rpm_ch.py | |
parent | ee0f349b35bf463642ecf845a94a2b5bb54efff3 (diff) | |
download | git-buildpackage-95e33623ea4c69c1ce3360904f053d5a1a172ed3.tar.gz git-buildpackage-95e33623ea4c69c1ce3360904f053d5a1a172ed3.tar.bz2 git-buildpackage-95e33623ea4c69c1ce3360904f053d5a1a172ed3.zip |
fix run error: re.error: bad escape \S at position 7
Change-Id: I6f9e25806b43aa66a1c05cad0d54edbc656f733b
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Diffstat (limited to 'gbp/scripts/rpm_ch.py')
-rwxr-xr-x | gbp/scripts/rpm_ch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/scripts/rpm_ch.py b/gbp/scripts/rpm_ch.py index b2a836aa..d134b76d 100755 --- a/gbp/scripts/rpm_ch.py +++ b/gbp/scripts/rpm_ch.py @@ -186,7 +186,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 {} |