You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-04-13 14:42:51 -07:00
patchupdate.py: Ensure that patchlist data is properly escaped.
This commit is contained in:
4
debian/tools/patchupdate.py
vendored
4
debian/tools/patchupdate.py
vendored
@ -431,9 +431,9 @@ def generate_makefile(all_patches, fp):
|
||||
fp.write("\t( \\\n")
|
||||
for info in patch.authors:
|
||||
if not info.subject: continue
|
||||
s = info.subject
|
||||
s = info.subject.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\techo '+ { \"%s\", \"%s\", \"%s\" },'; \\\n" % (patch.name, info.author, s))
|
||||
fp.write("\t) > %s.ok\n" % patch.name)
|
||||
else:
|
||||
fp.write("\ttouch %s.ok\n" % patch.name)
|
||||
|
Reference in New Issue
Block a user