From 21f53a30df7c0233ebbb16092adc5a6b1ea48daf Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Sat, 18 Jul 2020 21:24:28 -0300 Subject: [PATCH] Do not report warnings about conflicts in `Config` field When using variants the Config fields may be quite different between components. Reporting conflicts in Config generates noise. --- kibom/component.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/kibom/component.py b/kibom/component.py index dc9abc7..5a2c76f 100644 --- a/kibom/component.py +++ b/kibom/component.py @@ -556,11 +556,12 @@ def updateField(self, field, fieldData): elif fieldData.lower() in self.fields[field].lower(): return else: - debug.warning("Field conflict: ({refs}) [{name}] : '{flds}' <- '{fld}'".format( - refs=self.getRefs(), - name=field, - flds=self.fields[field], - fld=fieldData).encode('utf-8')) + if field != self.prefs.configField: + debug.warning("Field conflict: ({refs}) [{name}] : '{flds}' <- '{fld}'".format( + refs=self.getRefs(), + name=field, + flds=self.fields[field], + fld=fieldData).encode('utf-8')) self.fields[field] += " " + fieldData def updateFields(self, usealt=False, wrapN=None):