aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAchilleas Koutsou2023-03-09 20:16:48 +0100
committerAchilleas Koutsou2023-03-09 20:16:48 +0100
commitbf2f7fe814d4510a5e3c0847602e4524ad7c5b1a (patch)
treec1ab590f14d257c039f58fd980cc136825615573
parent867d872ea92d9143756deff846f86f35a95aadbe (diff)
downloadaur-bf2f7fe814d4510a5e3c0847602e4524ad7c5b1a.tar.gz
checkupdate: change regex for upstream parsing
The upstream filename format seems to have changed and no longer contains a timestamp.
-rwxr-xr-xcheckupdate3
1 files changed, 2 insertions, 1 deletions
diff --git a/checkupdate b/checkupdate
index 6c12e3433dc0..de4869938abc 100755
--- a/checkupdate
+++ b/checkupdate
@@ -8,7 +8,7 @@ from typing import Dict, Tuple
def parse_location(fname: str) -> Dict[str, str]:
- pattern = r"CrashPlanSmb_(?P<ver>[0-9.]+)_(?P<timestamp>[0-9]{14})_(?P<build>[0-9]+)_Linux.tgz"
+ pattern = r"CrashPlanSmb_(?P<ver>[0-9.]+)_(?P<build>[0-9]+)_Linux.tgz"
regex = re.compile(pattern)
match = regex.match(fname)
if match:
@@ -25,6 +25,7 @@ def get_upstream_ver():
resp = conn.getresponse()
loc = resp.headers.get("location")
fname = loc.rsplit("/", 1)[-1]
+ print(f"Parsing upstream filename {fname}")
info = parse_location(fname)
return info["ver"]