Skip to content

Commit

Permalink
Fix vendor dep file name
Browse files Browse the repository at this point in the history
  • Loading branch information
legoguy1000 committed Jan 23, 2025
1 parent b0b3d76 commit c4e7272
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vendor-update/vendor-update.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ def compareVersions(item1: str, item2: str):
url = new_vendor.get("path", "")
if not url.startswith("http"):
url = f"{VENDOR_DEP_MARKETPLACE_URL}/{url}"
new_file = os.path.basename(urlparse(url).path)
new_file_data = loadFileFromUrl(url)
if new_file_data is None:
continue
new_file = new_file_data.get("fileName", os.path.basename(urlparse(url).path))
with _dir.joinpath(new_file).open(mode="w", encoding="utf-8") as f:
json.dump(new_file_data, f, indent=4)
if new_file != file.name:
Expand Down

0 comments on commit c4e7272

Please sign in to comment.