From e08f70e78eb045ed4ac3cc7b7bbf7d073018b221 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 25 Aug 2020 09:21:55 -0300 Subject: [PATCH] No warnings about malformed value for DNFs Now if the component value is any of the DNF values we avoid parsing it as a real value. --- CHANGELOG.md | 2 ++ kibot/bom/bom.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53e5df6d..0ecde9fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - The variants logic for BoMs when a component resquested to be only added to more than one variant. +- Removed warnings about malformed values for DNF components indicating it in + its value. ## [0.6.1] - 2020-08-20 ### Added diff --git a/kibot/bom/bom.py b/kibot/bom/bom.py index aac2778d..2b6c0530 100644 --- a/kibot/bom/bom.py +++ b/kibot/bom/bom.py @@ -355,7 +355,7 @@ def group_components(cfg, components): if test_reg_exclude(cfg, c): continue # Cache the value used to sort - if c.ref_prefix in RLC_PREFIX: + if c.ref_prefix in RLC_PREFIX and c.value.lower() not in DNF: c.value_sort = comp_match(c.value, c.ref_prefix) else: c.value_sort = None