| Message ID | 20261104112257.866914-3-stondo@gmail.com |
|---|---|
| State | Under Review |
| Headers | show |
| Series | spdx30: Fix two bugs in the source download enrichment | expand |
diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py index 803a9e05a9..7f3280a763 100644 --- a/meta/lib/oe/spdx30_tasks.py +++ b/meta/lib/oe/spdx30_tasks.py @@ -426,7 +426,7 @@ def enrich_source_package(d, dl, fd, file_name, primary_purpose): version = None purl = None - if fd.type == "git": + if fd.type in ("git", "gitsm"): # Use full SHA-1 from fd.revision srcrev = getattr(fd, "revision", None) if srcrev and srcrev not in {"${AUTOREV}", "AUTOINC", "INVALID"}: