Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
* Improve dependency detection in `getdependencies javascript`.
* Fix issue in `project prerequisites` when reading an empty project.

## NEXT

* Fixed a bug in `bom filter`, that happened in verbose output when using a purl for filtering.

## 2.10.0

* Have `bom bompackage` as a separate command and have the advanced folder structure
Expand Down
16 changes: 11 additions & 5 deletions capycli/bom/filter_bom.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -------------------------------------------------------------------------------
# Copyright (c) 2019-2024 Siemens
# Copyright (c) 2019-2026 Siemens
# All Rights Reserved.
# Author: [email protected]
#
Expand Down Expand Up @@ -251,10 +251,16 @@ def filter_bom(self, bom: Bom, filter_file: str) -> Bom:
if self.verbose:
for filterentry in filter["Components"]:
if not filterentry["Processed"]:
print_yellow(
" No matching entry found for " +
filterentry["component"]["Name"] + ", " +
filterentry["component"].get("Version", "(all)"))
searchitem = ""
if filterentry["component"].get("Name"):
searchitem = filterentry["component"]["Name"] + ", "\
+ filterentry["component"].get("Version", "(all)")
elif filterentry["component"].get("RepositoryId"):
searchitem = filterentry["component"]["RepositoryId"]

if searchitem:
print_yellow(
" No matching entry found for " + searchitem)

print()

Expand Down