diff options
| -rw-r--r-- | meta/lib/oe/spdx_common.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/lib/oe/spdx_common.py b/meta/lib/oe/spdx_common.py index c2dec65563..72c24180d5 100644 --- a/meta/lib/oe/spdx_common.py +++ b/meta/lib/oe/spdx_common.py | |||
| @@ -230,6 +230,11 @@ def fetch_data_to_uri(fd, name): | |||
| 230 | Translates a bitbake FetchData to a string URI | 230 | Translates a bitbake FetchData to a string URI |
| 231 | """ | 231 | """ |
| 232 | uri = fd.type | 232 | uri = fd.type |
| 233 | |||
| 234 | # crate: is not a valid URL. Use url field instead if exist | ||
| 235 | if uri == "crate" and hasattr(fd,"url"): | ||
| 236 | return fd.url | ||
| 237 | |||
| 233 | # Map gitsm to git, since gitsm:// is not a valid URI protocol | 238 | # Map gitsm to git, since gitsm:// is not a valid URI protocol |
| 234 | if uri == "gitsm": | 239 | if uri == "gitsm": |
| 235 | uri = "git" | 240 | uri = "git" |
