patman: Move warning collection to a function
authorSimon Glass <sjg@chromium.org>
Fri, 30 Oct 2020 03:46:23 +0000 (21:46 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 5 Nov 2020 16:11:31 +0000 (09:11 -0700)
commitb5cc39905343312d1b7064ede72561394049be21
tree25a47259682c75889d64da56bf0b55ed1d58b2e7
parent1cb1c0fc8d6b797901f68afe5e9dd18c20401c5e
patman: Move warning collection to a function

Add a new function in PatchStream to collect the warnings generated while
parsing the stream. This will allow us to adjust the logic, such as
dealing with per-commit warnings.

Two of the warnings are in fact internal errors, so change them to raise
and exception.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/patchstream.py