Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
17 lines
718 B
Diff
17 lines
718 B
Diff
diff --git a/platformio/package/manifest/schema.py b/platformio/package/manifest/schema.py
|
|
index c1d22ab5..6c2cfaed 100644
|
|
--- a/platformio/package/manifest/schema.py
|
|
+++ b/platformio/package/manifest/schema.py
|
|
@@ -276,9 +276,6 @@ class ManifestSchema(BaseSchema):
|
|
@staticmethod
|
|
@memoized(expire="1h")
|
|
def load_spdx_licenses():
|
|
- version = "3.23"
|
|
- spdx_data_url = (
|
|
- "https://raw.githubusercontent.com/spdx/license-list-data/"
|
|
- f"v{version}/json/licenses.json"
|
|
- )
|
|
- return json.loads(fetch_remote_content(spdx_data_url))
|
|
+ with open("@spdx_license_list_data@/json/licenses.json") as fd:
|
|
+ spdx = json.load(fd)
|
|
+ return spdx
|