]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
patman: Continue on if warnings are found outside a commit
authorSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 05:01:42 +0000 (18:01 +1300)
committerSimon Glass <sjg@chromium.org>
Tue, 6 Apr 2021 04:33:10 +0000 (16:33 +1200)
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>
tools/patman/patchstream.py

index cdcd50a8499eca031412abdf4a18ae668e04e75e..a44cd861afcaef5fd83644ca96d416f376b00602 100644 (file)
@@ -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):