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.
This commit is contained in:
Salvador E. Tropea 2020-08-25 09:21:55 -03:00
parent d80b145af9
commit e08f70e78e
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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