Now, unless sbom4python is able to split a line of pip show module using : as a delimiter, and unless the result of this split contains EXACTLY 2 entries, with the second one being neither empty nor whitespaces, then the program will skip it and directly parse the next line of pip show module result.
This could be further improved by adding a dictionnary of valid entries keywords, and checking entries of parsed lines of pip show module against it, skipping lines that don't contain a proper keyword.
Implemented a temporary fix for #8
Commit Files Diff
fix #8
Now, unless
sbom4python
is able to split a line ofpip show module
using:
as a delimiter, and unless the result of this split contains EXACTLY 2 entries, with the second one being neither empty nor whitespaces, then the program will skip it and directly parse the next line ofpip show module
result.This could be further improved by adding a
dictionnary
of valid entries keywords, and checking entries of parsed lines ofpip show module
against it, skipping lines that don't contain a proper keyword.on-behalf-of: @Red-Alert-Labs youenn.tillard@redalertlabs.com