Skip to content

Commit

Permalink
Merge pull request #14 from blackducksoftware/dev
Browse files Browse the repository at this point in the history
v1.0.14 - Fix for copying package + src files
  • Loading branch information
matthewb66 authored Sep 20, 2024
2 parents abc2561 + 80d9c56 commit d98fbc3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Synopsys Scan Yocto Script - bd_scan_yocto_via_sbom.py v1.0.13
# Synopsys Scan Yocto Script - bd_scan_yocto_via_sbom.py v1.0.14

# PROVISION OF THIS SCRIPT
This script is provided under the MIT license (see LICENSE file).
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "bd_scan_yocto_via_sbom"
version = "1.0.13"
version = "1.0.14"
authors = [
{ name="Matthew Brady", email="[email protected]" },
]
Expand Down
6 changes: 4 additions & 2 deletions yocto_import_sbom/BBClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def process_showlayers(showlayers_file, reclist):

@staticmethod
def process_licman_file(lic_manifest_file, reclist):
packages_total = 0
recipes_total = 0
try:
with open(lic_manifest_file, "r") as lfile:
Expand All @@ -214,14 +215,15 @@ def process_licman_file(lic_manifest_file, reclist):
recipe = line.split(': ')[1]

if recipe and ver:
recipes_total += 1
packages_total += 1
rec_obj = Recipe(recipe, ver)
if not reclist.check_recipe_exists(recipe):
reclist.recipes.append(rec_obj)
recipes_total += 1
ver = ''
recipe = ''

logging.info(f"- {recipes_total} packages found in license.manifest file ({reclist.count()} recipes)")
logging.info(f"- {packages_total} packages found in {lic_manifest_file} ({recipes_total} recipes)")

except Exception as e:
logging.error(f"Cannot read license manifest file '{lic_manifest_file}' - error '{e}'")
Expand Down
2 changes: 1 addition & 1 deletion yocto_import_sbom/ConfigClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def __init__(self):
else:
logging.basicConfig(level=loglevel)

logging.info("Black Duck Yocto scan via SBOM utility - v1.0.13")
logging.info("Black Duck Yocto scan via SBOM utility - v1.0.14")
logging.info("SUPPLIED ARGUMENTS:")
for arg in vars(args):
logging.info(f"--{arg}={getattr(args, arg)}")
Expand Down
2 changes: 1 addition & 1 deletion yocto_import_sbom/RecipeListClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def scan_pkg_download_files(self, conf, bom):
return True
return False

def find_files(self, conf, all_download_files, all_pkg_files):
def find_files(self, conf, all_pkg_files, all_download_files):
found_files = []
for recipe in self.recipes:
if not conf.scan_all_packages and recipe.matched_in_bom:
Expand Down

0 comments on commit d98fbc3

Please sign in to comment.