@@ -211,7 +211,7 @@ def poll_for_upload(sbom_name):
211
211
logging .error (f"No scan found for SBOM: { sbom_name } " )
212
212
else :
213
213
logging .error (f"Unable to verify successful scan of SBOM: { sbom_name } " )
214
-
214
+ # If we got this far, it's a fatal error.
215
215
sys .exit (1 )
216
216
217
217
# TODO do we care about project_groups?
@@ -241,7 +241,6 @@ def upload_sbom_file(filename, project, version):
241
241
logging .error (f"Status code { response .status_code } " )
242
242
sys .exit (1 )
243
243
244
-
245
244
# Lookup the given pURL in the BD KB.
246
245
#
247
246
# Inputs:
@@ -261,7 +260,6 @@ def find_comp_in_kb(extref):
261
260
# Fall through -- lookup failed
262
261
return (None )
263
262
264
-
265
263
# Locate component name + version in BOM
266
264
# Inputs:
267
265
# compname - Component name to locate
@@ -295,7 +293,6 @@ def find_comp_in_bom(compname, compver, projver):
295
293
return False
296
294
return False
297
295
298
-
299
296
# Verifies if a custom component and version already exist in the system
300
297
#
301
298
# Inputs:
@@ -386,7 +383,6 @@ def create_cust_comp(name, version, license):
386
383
for version in bd .get_items (response .links ['versions' ]['url' ]):
387
384
return (version ['_meta' ]['href' ])
388
385
389
-
390
386
# Create a version for a custom component that already exists
391
387
#
392
388
# Inputs:
@@ -410,7 +406,6 @@ def create_cust_comp_ver(comp_url, version, license):
410
406
logging .error (f"Version { version } already exists for component" )
411
407
sys .exit (1 )
412
408
413
- # necessary?
414
409
if response .status_code != 201 :
415
410
logging .error (f"Failed to add Version { version } to component" )
416
411
sys .exit (1 )
0 commit comments