patchupdate.py: Extract revision information directly from patch subject.

This commit is contained in:
Sebastian Lackner
2014-11-15 10:01:12 +01:00
parent dc05c7f163
commit 723bc23e50
5 changed files with 292 additions and 282 deletions

View File

@@ -499,9 +499,9 @@ def generate_makefile(all_patches):
# Create *.ok file (used to generate patchlist)
if len(patch.patches):
fp.write("\t@( \\\n")
for p in _unique(patch.patches, key=lambda p: (p.patch_author, p.patch_subject)):
fp.write("\t\techo '+ { \"%s\", \"%s\" },'; \\\n" % \
(_escape(p.patch_author), _escape(p.patch_subject)))
for p in _unique(patch.patches, key=lambda p: (p.patch_author, p.patch_subject, p.patch_revision)):
fp.write("\t\techo '+ { \"%s\", \"%s\", %d },'; \\\n" % \
(_escape(p.patch_author), _escape(p.patch_subject), p.patch_revision))
fp.write("\t) > %s.ok\n" % patch.name)
else:
fp.write("\ttouch %s.ok\n" % patch.name)