Skip to contentSkip to conversation

patman: Continue on if warnings are found outside a commit

PATCH New Simon Glass 1 participant 2 messages Mar 22, 2021 – Apr 6, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

 tools/patman/patchstream.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/patman/patchstream.py +2 -2
index cdcd50a8499..a44cd861afc 100644
@@ -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):
Signature · 1 line
2.31.0.rc2.261.g7f71774620-goog
#1 lore raw

PATCH 1/1 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.

---

 tools/patman/patchstream.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied to u-boot-dm, thanks!