Skip to content

Commit

Permalink
Fixed two bugs: DNP check is now case insensitive, all components are…
Browse files Browse the repository at this point in the history
… now going through the DNP check (no break)
  • Loading branch information
eeintech committed Dec 21, 2020
1 parent dbed19b commit 8d0d16f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions kibom/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def writeVariant(input_file, output_dir, output_file, variant, preferences):
variant_field_value = component.getField(field)

# Process no loaded option
if variant_field_value in DNF:
if variant_field_value.lower() in DNF:
do_not_populate.append(component)
break

Expand All @@ -81,10 +81,6 @@ def writeVariant(input_file, output_dir, output_file, variant, preferences):
if do_not_populate:
updated_components = []
for component in components:
# Check if dnp list is empty
if not do_not_populate:
break

keep = True
for dnp in do_not_populate:
# If component reference if found in dnp list: set for removal
Expand Down

0 comments on commit 8d0d16f

Please sign in to comment.