mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
patman: Continue on if warnings are found outside a commit
While we cannot know which commit the warning relates to, this should not be fatal. Print the warning and carry on. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
4b5019e3e5
commit
42bc156f80
|
@ -133,8 +133,8 @@ class PatchStream:
|
||||||
ValueError: Warning is generated with no commit associated
|
ValueError: Warning is generated with no commit associated
|
||||||
"""
|
"""
|
||||||
if not self.commit:
|
if not self.commit:
|
||||||
raise ValueError('Warning outside commit: %s' % warn)
|
print('Warning outside commit: %s' % warn)
|
||||||
if warn not in self.commit.warn:
|
elif warn not in self.commit.warn:
|
||||||
self.commit.warn.append(warn)
|
self.commit.warn.append(warn)
|
||||||
|
|
||||||
def _add_to_series(self, line, name, value):
|
def _add_to_series(self, line, name, value):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user