fix: build and publish nzbget to artifactapi rpm-vendor repos #170
Reference in New Issue
Block a user
Delete Branch "benvin/nzbget-artifactapi"
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
nzbgetis absent from the artifactapirpm-vendor-el9/rpm-vendor-el8repodata, sodnf install nzbgetfails on the media host (AlmaLinux 9.7). The legacy Gitea RPM registry is being removed from hosts by puppet-prod #496, so nzbget must land inrpm-vendor-el9or installs break.Root cause: nzbget's
build.shbuilt the GitHub download URL fromPACKAGE_RELEASE, which carries the dist tag (e.g.1.el9). Upstream only publishesnzbget-<version>-1.x86_64.rpm(no dist tag), so the fetch 404s and a 22-byte "upstream returned 404" junk file is what gets published — createrepo cannot index it, so the package never appears in the repo metadata. The stale junknzbget-26.1-1.el9also makes the deploy step's dedup probe return HTTP 200, which would skip re-uploading a corrected 26.1.How
build.shsource URL at the upstream release-1 asset name (nzbget-${PACKAGE_VERSION}-1.x86_64.rpm) while keeping the dist-tagged local output filename, mirroring thecode-serverpackage which repackages a prebuilt upstream RPM the same way.26.2(current upstream stable) so the corrected build produces a fresh filename the deploy step will actually PUT (side-stepping the stale-junk dedup skip).Validation
NAME=nzbget VER=26.2 REL=1 ARCH=x86_64.pytest72 passed; metadata validates againstschema/metadata.json; all pre-commit hooks pass (yamllint, check-jsonschema, etc.).Post-merge
The deploy pipelines (
.woodpecker/deploy-almalinux{8,9}.yaml) run on push tomaster. On merge they willbuild-all --distro almalinux/el{8,9}, build nzbget 26.2, and PUTnzbget-26.2-1.el{8,9}.x86_64.rpmtorpm-vendor-el{8,9}; artifactapi regenerates repodata sodnf install nzbgetresolves.https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv