| Message ID | 20261111173537.3653558-4-stondo@gmail.com |
|---|---|
| State | New |
| Headers | show |
| Series | spdx30: fix the source download enrichment | expand |
diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py index 9fb2dcc36f..dbaccd0e34 100644 --- a/meta/lib/oe/spdx30_tasks.py +++ b/meta/lib/oe/spdx30_tasks.py @@ -449,7 +449,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'}: