Skip to content

Commit d98fbc3

Browse files
authored
Merge pull request #14 from blackducksoftware/dev
v1.0.14 - Fix for copying package + src files
2 parents abc2561 + 80d9c56 commit d98fbc3

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Synopsys Scan Yocto Script - bd_scan_yocto_via_sbom.py v1.0.13
1+
# Synopsys Scan Yocto Script - bd_scan_yocto_via_sbom.py v1.0.14
22

33
# PROVISION OF THIS SCRIPT
44
This script is provided under the MIT license (see LICENSE file).

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "bd_scan_yocto_via_sbom"
7-
version = "1.0.13"
7+
version = "1.0.14"
88
authors = [
99
{ name="Matthew Brady", email="[email protected]" },
1010
]

yocto_import_sbom/BBClass.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def process_showlayers(showlayers_file, reclist):
193193

194194
@staticmethod
195195
def process_licman_file(lic_manifest_file, reclist):
196+
packages_total = 0
196197
recipes_total = 0
197198
try:
198199
with open(lic_manifest_file, "r") as lfile:
@@ -214,14 +215,15 @@ def process_licman_file(lic_manifest_file, reclist):
214215
recipe = line.split(': ')[1]
215216

216217
if recipe and ver:
217-
recipes_total += 1
218+
packages_total += 1
218219
rec_obj = Recipe(recipe, ver)
219220
if not reclist.check_recipe_exists(recipe):
220221
reclist.recipes.append(rec_obj)
222+
recipes_total += 1
221223
ver = ''
222224
recipe = ''
223225

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

226228
except Exception as e:
227229
logging.error(f"Cannot read license manifest file '{lic_manifest_file}' - error '{e}'")

yocto_import_sbom/ConfigClass.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def __init__(self):
144144
else:
145145
logging.basicConfig(level=loglevel)
146146

147-
logging.info("Black Duck Yocto scan via SBOM utility - v1.0.13")
147+
logging.info("Black Duck Yocto scan via SBOM utility - v1.0.14")
148148
logging.info("SUPPLIED ARGUMENTS:")
149149
for arg in vars(args):
150150
logging.info(f"--{arg}={getattr(args, arg)}")

yocto_import_sbom/RecipeListClass.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def scan_pkg_download_files(self, conf, bom):
8585
return True
8686
return False
8787

88-
def find_files(self, conf, all_download_files, all_pkg_files):
88+
def find_files(self, conf, all_pkg_files, all_download_files):
8989
found_files = []
9090
for recipe in self.recipes:
9191
if not conf.scan_all_packages and recipe.matched_in_bom:

0 commit comments

Comments
 (0)