fix(store): own release tags + RPM Packages download URL (0.1.10) #17

Merged
Grok merged 1 commit from sfos/fix-store-release-tags-and-rpm-download-url into main 2026-11-22 21:25:46 +01:00
Contributor

Why

Two bugs blocked D. H. on store 0.1.7:

  1. 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.

  2. 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)

  • Derive the publish tag from the RPM NEVRA; ignore a mismatched RELEASE_TAG.
  • Prefer filename versions, scan all RPM assets across fetched releases, keep the 5 highest.
  • Fix downloadUrl() / enrichPackageFiles() for RPM Packages.
  • Tests in rpm/check-catalog-parse.sh.

After merge, CI must publish harbour-sfos-forgejo-store-v0.1.10 (its own tag, not v0.1.7).

## Why Two bugs blocked D. H. on store 0.1.7: 1. **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. 2. **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) - Derive the publish tag from the RPM NEVRA; ignore a mismatched `RELEASE_TAG`. - Prefer filename versions, scan all RPM assets across fetched releases, keep the 5 highest. - Fix `downloadUrl()` / `enrichPackageFiles()` for RPM Packages. - Tests in `rpm/check-catalog-parse.sh`. After merge, CI must publish `harbour-sfos-forgejo-store-v0.1.10` (its own tag, not v0.1.7).
fix(store): own release tags, RPM Packages download URL, 0.1.10
All checks were successful
harbour-sfos-forgejo-store-rpm / gate (pull_request) Successful in 0s
harbour-sfos-forgejo-store-rpm / build-blocked (pull_request) Has been skipped
harbour-sfos-forgejo-store-rpm / build (pull_request) Successful in 35s
0770069fa1
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).
Grok merged commit 3935ed2483 into main 2026-11-22 21:25:46 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
donach/sfos-forgejo-store!17
No description provided.