WIP: Project Tools: Remove Requests Module from studio scripts #279
@ -22,7 +22,7 @@ def update_blender_studio_addons(download_folder_path: Path):
|
|||||||
url_zip = "https://projects.blender.org/studio/blender-studio-pipeline/releases/download/latest/blender_studio_add-ons_latest.zip"
|
url_zip = "https://projects.blender.org/studio/blender-studio-pipeline/releases/download/latest/blender_studio_add-ons_latest.zip"
|
||||||
|
|
||||||
# Check current sha and early return if match
|
# Check current sha and early return if match
|
||||||
web_sha = urlopen(url_sha).read().decode()
|
web_sha = urlopen(url_sha).read().decode().strip().lower()
|
||||||
if sha_file.exists() & zip_file.exists():
|
if sha_file.exists() & zip_file.exists():
|
||||||
if shasum_matches(zip_file, web_sha):
|
if shasum_matches(zip_file, web_sha):
|
||||||
print(f"{zip_file.name} already up to date, canceling update")
|
print(f"{zip_file.name} already up to date, canceling update")
|
||||||
|
Loading…
Reference in New Issue
Block a user