patchupdate.py: Fix escaping of single quoted strings in definition files.

This commit is contained in:
Sebastian Lackner
2014-09-19 16:30:05 +02:00
parent 299a2daeac
commit 0f73278955
2 changed files with 2 additions and 2 deletions

View File

@@ -528,7 +528,7 @@ def generate_makefile(all_patches):
fp.write("\t@( \\\n")
for info in patch.authors:
if not info.subject: continue
s = info.subject.replace("\\", "\\\\\\\\").replace("\"", "\\\\\"")
s = info.subject.replace("\\", "\\\\\\\\").replace("\"", "\\\\\"").replace("'", "'\\''")
if info.revision and info.revision != "1": s += " [rev %s]" % info.revision
fp.write("\t\techo '+ { \"%s\", \"%s\", \"%s\" },'; \\\n" % (patch.name, info.author, s))
fp.write("\t) > %s.ok\n" % patch.name)