Changes to fix bugs
This commit is contained in:
parent
48c4b0f5fd
commit
2d6625c52a
|
|
@ -1,3 +1,3 @@
|
||||||
nuitka==1.2.4
|
nuitka==1.4.8
|
||||||
ordered-set==4.1.0
|
ordered-set==4.1.0
|
||||||
zstandard==0.19.0
|
zstandard==0.20.0
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ def get_sku_version(sku_path: pathlib.Path) -> float:
|
||||||
changelog_path = sku_path / "CHANGELOG.md"
|
changelog_path = sku_path / "CHANGELOG.md"
|
||||||
with changelog_path.open("r") as f:
|
with changelog_path.open("r") as f:
|
||||||
txt = f.read()
|
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:
|
if not version_match:
|
||||||
print("Unable to determine Sku version")
|
print("Unable to determine Sku version")
|
||||||
confirmed_exit(1)
|
confirmed_exit(1)
|
||||||
|
|
@ -45,7 +45,7 @@ def get_sku_version(sku_path: pathlib.Path) -> float:
|
||||||
|
|
||||||
def fetch_sku_version() -> tuple[float, str]:
|
def fetch_sku_version() -> tuple[float, str]:
|
||||||
rre = re.compile(
|
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,
|
re.I,
|
||||||
)
|
)
|
||||||
r = requests.get(SKU_URL)
|
r = requests.get(SKU_URL)
|
||||||
|
|
@ -56,7 +56,7 @@ def fetch_sku_version() -> tuple[float, str]:
|
||||||
confirmed_exit(1)
|
confirmed_exit(1)
|
||||||
href = links[0].get("href")
|
href = links[0].get("href")
|
||||||
version_match = re.search(
|
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,
|
href,
|
||||||
)
|
)
|
||||||
if not version_match:
|
if not version_match:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user