Make definition files optional, move revision numbers to corresponding .patch files.

This commit is contained in:
Sebastian Lackner
2014-11-15 10:33:43 +01:00
parent 723bc23e50
commit 7a419c031a
136 changed files with 80 additions and 454 deletions

View File

@@ -212,13 +212,7 @@ def read_definition(revision, filename, name_to_id):
elif key == "disabled":
disabled = parse_int(val)
elif key == "author" or \
key == "subject" or \
key == "title" or \
key == "revision":
pass
else:
elif revision is None:
print "WARNING: Ignoring unknown command in definition file %s: %s" % (filename, line)
return depends, fixes, disabled
@@ -264,7 +258,7 @@ def read_patchset(revision = None):
patch.depends, patch.fixes, patch.disabled = \
read_definition(revision, os.path.join(config.path_patches, patch.name), name_to_id)
except IOError:
raise PatchUpdaterError("Missing definition file for %s" % patch.name)
patch.depends, patch.fixes, patch.disabled = set(), [], False
return all_patches