Changes to fix bugs

This commit is contained in:
Kirill Belousov 2023-02-23 13:15:17 +03:00
parent 48c4b0f5fd
commit 2d6625c52a
2 changed files with 128 additions and 128 deletions

View File

@ -1,3 +1,3 @@
nuitka==1.2.4
nuitka==1.4.8
ordered-set==4.1.0
zstandard==0.19.0
zstandard==0.20.0

View File

@ -31,7 +31,7 @@ def get_sku_version(sku_path: pathlib.Path) -> float:
changelog_path = sku_path / "CHANGELOG.md"
with changelog_path.open("r") as f:
txt = f.read()
version_match = re.search(r"^\# Sku \((\d+\.\d+)\)", txt)
version_match = re.search(r"^\# Sku \(((\d+\.\d+)|(\d+))\)", txt)
if not version_match:
print("Unable to determine Sku version")
confirmed_exit(1)
@ -45,7 +45,7 @@ def get_sku_version(sku_path: pathlib.Path) -> float:
def fetch_sku_version() -> tuple[float, str]:
rre = re.compile(
r"^https://github.com/Duugu/Sku/releases/download/r\d+\.\d+/Sku-r\d+\.\d+-.+\.zip$",
r"^https://github.com/Duugu/Sku/releases/download/r(\d+\.\d+)|(\d+)/Sku-r(\d+\.\d+)|(\d+)-.+\.zip$",
re.I,
)
r = requests.get(SKU_URL)
@ -56,7 +56,7 @@ def fetch_sku_version() -> tuple[float, str]:
confirmed_exit(1)
href = links[0].get("href")
version_match = re.search(
r"^https://github.com/Duugu/Sku/releases/download/r\d+\.\d+/Sku-r(\d+\.\d+)-.+\.zip$",
r"^https://github.com/Duugu/Sku/releases/download/r(\d+\.\d+)|(\d+)/Sku-r((\d+\.\d+)|(\d+))-.+\.zip$",
href,
)
if not version_match: