diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-22 18:01:42 +1300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-04-06 16:33:10 +1200 |
commit | 42bc156f803995ca749f88a435706e3c8fb5f557 (patch) | |
tree | a40d858bd993bb4454703063904634d77cdb36dc /tools/patman | |
parent | 4b5019e3e57222cfa12147b6fcbce321cd140aeb (diff) | |
download | u-boot-42bc156f803995ca749f88a435706e3c8fb5f557.tar.gz u-boot-42bc156f803995ca749f88a435706e3c8fb5f557.tar.bz2 u-boot-42bc156f803995ca749f88a435706e3c8fb5f557.zip |
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>
Diffstat (limited to 'tools/patman')
-rw-r--r-- | tools/patman/patchstream.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py index cdcd50a849..a44cd861af 100644 --- a/tools/patman/patchstream.py +++ b/tools/patman/patchstream.py @@ -133,8 +133,8 @@ class PatchStream: ValueError: Warning is generated with no commit associated """ if not self.commit: - raise ValueError('Warning outside commit: %s' % warn) - if warn not in self.commit.warn: + print('Warning outside commit: %s' % warn) + elif warn not in self.commit.warn: self.commit.warn.append(warn) def _add_to_series(self, line, name, value): |