diff options
author | David Cantrell <dcantrell@redhat.com> | 2012-11-30 10:38:22 -0500 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2012-11-30 14:55:41 -0500 |
commit | 83bfc0c238b98085f34b488e0d38e3cf429c2970 (patch) | |
tree | aa9f281102ca3dd449df3f675ea7d0552637447a | |
parent | c355b5ae79533170db9c10853e6db55d1aeeee85 (diff) | |
download | anaconda-83bfc0c238b98085f34b488e0d38e3cf429c2970.tar.gz anaconda-83bfc0c238b98085f34b488e0d38e3cf429c2970.tar.xz anaconda-83bfc0c238b98085f34b488e0d38e3cf429c2970.zip |
Escape single percent signs in RPM changelog entries.
makebumpver needs to make sure that single percent signs (%) are
escaped in RPM changelog lines. Leaving single percent signs in the
changelog entries causes problems for rpmlint and, theoretically,
rpmbuild.
-rwxr-xr-x | scripts/makebumpver | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/makebumpver b/scripts/makebumpver index 9fe577c3d..a075e87d1 100755 --- a/scripts/makebumpver +++ b/scripts/makebumpver @@ -348,6 +348,7 @@ class MakeBumpVer: newVersion, self.release)) for msg, rhbz in rpmlog: + msg = re.sub('(?<!%)%%(?!%)|(?<!%%)%(?!%%)', '%%', msg) sublines = textwrap.wrap(msg, 77) f.write("- %s\n" % sublines[0]) |