helpers: repo: fix APKINDEX path handling (MR 2252)

We were appending .tar.gz twice! since commit ("treewide: adopt
pathlib.Path and type hinting")

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-12 15:54:17 +02:00 committed by Oliver Smith
parent ff86792fb6
commit bfd3f6a42c
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -161,7 +161,7 @@ def update(arch: Optional[Arch]=None, force=False, existing_only=False):
# APKINDEX file name from the URL
url_full = f"{url}/{arch}/APKINDEX.tar.gz"
cache_apk_outside = get_context().config.work / f"cache_apk_{arch}"
apkindex = cache_apk_outside / f"{apkindex_hash(url)}.tar.gz"
apkindex = cache_apk_outside / f"{apkindex_hash(url)}"
# Find update reason, possibly skip non-existing or known 404 files
reason = None