2020-01-19 22:51:45 +00:00
|
|
|
diff --git a/platformio/package/manifest/schema.py b/platformio/package/manifest/schema.py
|
2021-11-08 17:29:16 +00:00
|
|
|
index 416dccfd..896c3649 100644
|
2020-01-19 22:51:45 +00:00
|
|
|
--- a/platformio/package/manifest/schema.py
|
|
|
|
+++ b/platformio/package/manifest/schema.py
|
2021-11-08 17:29:16 +00:00
|
|
|
@@ -253,9 +253,6 @@ class ManifestSchema(BaseSchema):
|
2020-01-19 22:51:45 +00:00
|
|
|
@staticmethod
|
|
|
|
@memoized(expire="1h")
|
|
|
|
def load_spdx_licenses():
|
2022-02-10 20:38:06 +00:00
|
|
|
- version = "3.16"
|
2021-03-18 09:47:35 +00:00
|
|
|
- spdx_data_url = (
|
|
|
|
- "https://raw.githubusercontent.com/spdx/license-list-data/"
|
|
|
|
- "v%s/json/licenses.json" % version
|
|
|
|
- )
|
2020-09-12 15:27:02 +00:00
|
|
|
- return json.loads(fetch_remote_content(spdx_data_url))
|
2021-11-08 17:29:16 +00:00
|
|
|
+ with open("@SPDX_LICENSE_LIST_DATA@/json/licenses.json") as f:
|
|
|
|
+ spdx = json.load(f)
|
|
|
|
+ return spdx
|