diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/create-spdx-2.2.bbclass | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/meta/classes/create-spdx-2.2.bbclass b/meta/classes/create-spdx-2.2.bbclass index 795ba1a882..cd1d6819bf 100644 --- a/meta/classes/create-spdx-2.2.bbclass +++ b/meta/classes/create-spdx-2.2.bbclass | |||
@@ -354,15 +354,6 @@ def add_download_packages(d, doc, recipe): | |||
354 | if f.type == "file": | 354 | if f.type == "file": |
355 | continue | 355 | continue |
356 | 356 | ||
357 | uri = f.type | ||
358 | proto = getattr(f, "proto", None) | ||
359 | if proto is not None: | ||
360 | uri = uri + "+" + proto | ||
361 | uri = uri + "://" + f.host + f.path | ||
362 | |||
363 | if f.method.supports_srcrev(): | ||
364 | uri = uri + "@" + f.revisions[name] | ||
365 | |||
366 | if f.method.supports_checksum(f): | 357 | if f.method.supports_checksum(f): |
367 | for checksum_id in CHECKSUM_LIST: | 358 | for checksum_id in CHECKSUM_LIST: |
368 | if checksum_id.upper() not in oe.spdx.SPDXPackage.ALLOWED_CHECKSUMS: | 359 | if checksum_id.upper() not in oe.spdx.SPDXPackage.ALLOWED_CHECKSUMS: |
@@ -377,7 +368,7 @@ def add_download_packages(d, doc, recipe): | |||
377 | c.checksumValue = expected_checksum | 368 | c.checksumValue = expected_checksum |
378 | package.checksums.append(c) | 369 | package.checksums.append(c) |
379 | 370 | ||
380 | package.downloadLocation = uri | 371 | package.downloadLocation = oe.spdx_common.fetch_data_to_uri(f, name) |
381 | doc.packages.append(package) | 372 | doc.packages.append(package) |
382 | doc.add_relationship(doc, "DESCRIBES", package) | 373 | doc.add_relationship(doc, "DESCRIBES", package) |
383 | # In the future, we might be able to do more fancy dependencies, | 374 | # In the future, we might be able to do more fancy dependencies, |