Update get-iso

This commit is contained in:
root 2023-12-07 08:48:24 +01:00
parent f6eeaa1e70
commit 68a36245d5

View file

@ -12,11 +12,12 @@ import time
import requests.exceptions import requests.exceptions
from pathlib import Path from pathlib import Path
PROG_VERSION = "0.4"
DEF_URL = \ DEF_URL = \
"https://gitlab.manjaro.org/webpage/iso-info/-/raw/master/file-info.json" "https://gitlab.manjaro.org/webpage/iso-info/-/raw/master/file-info.json"
FOLDER = Path.home() FOLDER = Path.home()
PROG_NAME = os.path.basename(__file__) PROG_NAME = os.path.basename(__file__)
PROG_VERSION = "0.5"
GNU_URL = "https://www.gnu.org/licenses/gpl.html" GNU_URL = "https://www.gnu.org/licenses/gpl.html"
REVIEW_URL = \ REVIEW_URL = \
"https://api.github.com/repos/manjaro/release-review/releases/latest" "https://api.github.com/repos/manjaro/release-review/releases/latest"
@ -193,11 +194,11 @@ def main():
break break
if zip_result and sha_result: if zip_result and sha_result:
subprocess.run(["7z", "-y", "x", f"{zipname}"],
cwd=f"{FOLDER}")
subprocess.run(["7z", "-y", "t", f"{zipname}"], subprocess.run(["7z", "-y", "t", f"{zipname}"],
cwd=f"{FOLDER}") cwd=f"{FOLDER}")
print("Wait for checksum to complete ...") subprocess.run(["7z", "-y", "x", f"{zipname}"],
cwd=f"{FOLDER}")
print("\nWait for checksum to complete ...")
subprocess.run(["sha256sum", "-c", f"{shaname}"], subprocess.run(["sha256sum", "-c", f"{shaname}"],
cwd=f"{FOLDER}") cwd=f"{FOLDER}")
else: else: