Added support to remove the filters of the internal BoM.

This commit is contained in:
Salvador E. Tropea 2020-09-01 18:46:59 -03:00
parent 20936da07e
commit 8a2810fd8d
1 changed files with 9 additions and 4 deletions

View File

@ -363,10 +363,15 @@ def group_components(cfg, components):
def do_bom(file_name, ext, comps, cfg):
# Apply all the filters
for c in comps:
c.in_bom = cfg.exclude_filter.filter(c)
c.fitted = cfg.dnf_filter.filter(c)
c.fixed = cfg.dnc_filter.filter(c)
if cfg.exclude_filter:
for c in comps:
c.in_bom = cfg.exclude_filter.filter(c)
if cfg.dnf_filter:
for c in comps:
c.fitted = cfg.dnf_filter.filter(c)
if cfg.dnc_filter:
for c in comps:
c.fixed = cfg.dnc_filter.filter(c)
# Apply the variant
cfg.variant.filter(comps)
# Group components according to group_fields