Skip to content

Commit

Permalink
Merge pull request #46 from fosslight/pkg
Browse files Browse the repository at this point in the history
Exclude for packagegroup
  • Loading branch information
soimkim authored Jan 9, 2025
2 parents 85cca38 + 50e2517 commit b23cad2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fosslight_yocto/create_oss_report_for_yocto.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
OSC_DB_PASSWORD = 'oss_lic123'
EX_DATAERR = 65
EX_NOINPUT = 66
PKG_GROUP_PREFIX = "packagegroup-"


def read_installed_pkg_file(installed_pkg_names_file):
Expand All @@ -91,6 +92,8 @@ def read_installed_pkg_file(installed_pkg_names_file):
if pkg_name in bom_pkg_data:
for key, value in bom_pkg_data[pkg_name].items():
set_value_switch(pkg_item, key, value, nested_pkg_name)
if pkg_name.startswith(PKG_GROUP_PREFIX):
pkg_item.exclude = True
installed_packages_src.append(pkg_item)
if pkg_info_not_found and pkg_item.oss_name:
pkg_info_not_found = False
Expand Down

0 comments on commit b23cad2

Please sign in to comment.