fix(store): own release tags + RPM Packages download URL (0.1.10) #17
Loading…
Reference in a new issue
No description provided.
Delete branch "sfos/fix-store-release-tags-and-rpm-download-url"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Two bugs blocked D. H. on store 0.1.7:
Self-update stuck at 0.1.7. CI hardcoded
RELEASE_TAG=harbour-sfos-forgejo-store-v0.1.7, so the 0.1.8 and 0.1.9 RPMs were attached to that tag. The catalog treated the latest release tag as the version, so 0.1.8/0.1.9 never showed.Keyboard install "not found". Packages-source downloads used the generic
/api/packages/{owner}/rpm/{name}/{version}/{filename}path, which 404s on this instance. The correct RPM registry URL is/api/packages/{owner}/rpm/package/{name}/{version}/{arch}/{filename}. On store ≤0.1.7 the keyboard only appears via Packages (release source added in 0.1.9).Release assets for 0.1.8 and 0.1.9 have already been moved onto their own tags (
harbour-sfos-forgejo-store-v0.1.8,v0.1.9); v0.1.7 now contains only the 0.1.7 RPM.This PR (0.1.10)
RELEASE_TAG.downloadUrl()/enrichPackageFiles()for RPM Packages.rpm/check-catalog-parse.sh.After merge, CI must publish
harbour-sfos-forgejo-store-v0.1.10(its own tag, not v0.1.7).CI had hardcoded RELEASE_TAG to v0.1.7, so 0.1.8 and 0.1.9 RPMs were uploaded onto that tag and the catalog still looked like 0.1.7. Derive the tag from the RPM NEVRA, refuse a mismatched RELEASE_TAG, and parse catalog versions from asset filenames (highest EVR wins). Forgejo RPM Packages downloads used the generic /api/packages/{owner}/rpm/{name}/{version}/{file} path, which 404s. Use /rpm/package/{name}/{version}/{arch}/{filename} and attach that URL when enriching package file rows (keyboard install on ≤0.1.7).