feat: dist_tag boolean for distro-aware release strings
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build-fedora43 Pipeline was successful
ci/woodpecker/pr/build-fedora42 Pipeline was successful
ci/woodpecker/pr/build-fedora44 Pipeline was successful
ci/woodpecker/pr/build-almalinux9 Pipeline failed
ci/woodpecker/pr/build-almalinux8 Pipeline failed

Adds a per-package dist_tag: true/false metadata flag (default false).
When enabled the build tool appends the RPM dist tag to the release
at build time so each distro produces a unique version in the Gitea
package registry:

  release: 1  +  almalinux/el9  ->  PACKAGE_RELEASE=1.el9
  release: 1  +  fedora/43      ->  PACKAGE_RELEASE=1.fc43

This ensures Gitea package existence checks don't confuse packages built
for one distro with those built for another (the original bug).

Changes:
- Add effective_release() and get_rpm_dist_tag() helpers
- Revert the broken files-endpoint check from the previous commit;
  dist disambiguation is now handled purely via the release string
- discover_packages and build_single both compute the effective release
  before constructing PackageInfo
- check_package_exists simplified back to a single version-level check
- dist_tag added to METADATA_SCHEMA and PackageMetadata dataclass
- All 69 metadata.yaml files updated with dist_tag: true
- Exclude jellyfin from dist_tags
This commit is contained in:
2026-05-17 11:07:49 +10:00
parent 3de605d321
commit 13af3aeedf
73 changed files with 421 additions and 352 deletions
+17 -15
View File
@@ -1,18 +1,20 @@
--- name: act_runner
arch: amd64
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository: [almalinux/el8]
version: 0.2.12
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository: [almalinux/el9]
version: 0.2.12
description: A runner for Gitea based on act.
github: unknown/act_runner github: unknown/act_runner
description: A runner for Gitea based on act.
arch: amd64
platform: linux
maintainer: Gitea
homepage: https://gitea.com/gitea/act_runner homepage: https://gitea.com/gitea/act_runner
license: MIT license: MIT
maintainer: Gitea dist_tag: true
name: act_runner builds:
platform: linux - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 0.2.12
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 0.2.12
+17 -15
View File
@@ -1,18 +1,20 @@
--- name: bind_exporter
arch: amd64
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository: [almalinux/el8]
version: 0.8.0
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository: [almalinux/el9]
version: 0.8.0
description: Prometheus exporter for BIND
github: prometheus-community/bind_exporter github: prometheus-community/bind_exporter
description: Prometheus exporter for BIND
arch: amd64
platform: linux
maintainer: Prometheus
homepage: https://github.com/prometheus-community/bind_exporter homepage: https://github.com/prometheus-community/bind_exporter
license: Apache-2.0 license license: Apache-2.0 license
maintainer: Prometheus dist_tag: true
name: bind_exporter builds:
platform: linux - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 0.8.0
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 0.8.0
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: Gruntwork maintainer: Gruntwork
homepage: https://github.com/gruntwork-io/boilerplate homepage: https://github.com/gruntwork-io/boilerplate
license: MIT license: MIT
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+7 -6
View File
@@ -1,4 +1,11 @@
name: claude-code
description: Claude Code - Anthropic's agentic AI coding tool
arch: amd64 arch: amd64
platform: linux
maintainer: Anthropic
homepage: https://claude.ai/code
license: Proprietary
dist_tag: true
builds: builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1 release: 1
@@ -11,9 +18,3 @@ builds:
- almalinux/el9 - almalinux/el9
version: 2.1.126 version: 2.1.126
claude_ai: true claude_ai: true
description: Claude Code - Anthropic's agentic AI coding tool
homepage: https://claude.ai/code
license: Proprietary
maintainer: Anthropic
name: claude-code
platform: linux
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: ContainerNetworking maintainer: ContainerNetworking
homepage: https://github.com/containernetworking/plugins homepage: https://github.com/containernetworking/plugins
license: Apache-2.0 license: Apache-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1 -1
View File
@@ -1,4 +1,3 @@
---
name: code-server name: code-server
github: coder/code-server github: coder/code-server
description: VS Code in the browser. description: VS Code in the browser.
@@ -7,6 +6,7 @@ platform: linux
maintainer: Coder maintainer: Coder
homepage: https://github.com/coder/code-server homepage: https://github.com/coder/code-server
license: MIT license: MIT
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+18 -15
View File
@@ -1,18 +1,21 @@
--- name: consul-cni
arch: amd64
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository: [almalinux/el8]
version: 1.7.1
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository: [almalinux/el9]
version: 1.7.1
description: Plugin for Consul on Kubernetes to allow configuring traffic redirection rules without escalated container privileges.
github: unknown/consul-cni github: unknown/consul-cni
description: Plugin for Consul on Kubernetes to allow configuring traffic redirection
rules without escalated container privileges.
arch: amd64
platform: linux
maintainer: Hashicorp
homepage: https://hashicorp.com homepage: https://hashicorp.com
license: Mozilla Public License, version 2.0 license: Mozilla Public License, version 2.0
maintainer: Hashicorp dist_tag: true
name: consul-cni builds:
platform: linux - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 1.7.1
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 1.7.1
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: HashiCorp maintainer: HashiCorp
homepage: https://github.com/hashicorp/consul homepage: https://github.com/hashicorp/consul
license: BUSL-1.1 license: BUSL-1.1
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: https://etcd.io/ maintainer: https://etcd.io/
homepage: https://etcd.io/ homepage: https://etcd.io/
license: Apache-2.0 license: Apache-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: onedr0p maintainer: onedr0p
homepage: https://github.com/onedr0p/exportarr homepage: https://github.com/onedr0p/exportarr
license: MIT license license: MIT license
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -6,6 +6,7 @@ platform: linux
maintainer: Prometheus maintainer: Prometheus
homepage: https://github.com/tynany/frr_exporter homepage: https://github.com/tynany/frr_exporter
license: MIT license: MIT
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+17 -15
View File
@@ -1,18 +1,20 @@
--- name: g10k
arch: amd64
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository: [almalinux/el8]
version: 0.9.10
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository: [almalinux/el9]
version: 0.9.10
description: An r10k fork written in Go, designed to work somwhat similar like puppetlabs/r10k.
github: xorpaul/g10k github: xorpaul/g10k
description: An r10k fork written in Go, designed to work somwhat similar like puppetlabs/r10k.
arch: amd64
platform: linux
maintainer: xorpaul
homepage: https://github.com/xorpaul/g10k homepage: https://github.com/xorpaul/g10k
license: Apache2.0 license: Apache2.0
maintainer: xorpaul dist_tag: true
name: g10k builds:
platform: linux - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 0.9.10
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 0.9.10
+1 -1
View File
@@ -1,4 +1,3 @@
---
name: git-delta name: git-delta
github: dandavison/delta github: dandavison/delta
description: A syntax-highlighting pager for git, diff, grep, and blame output. description: A syntax-highlighting pager for git, diff, grep, and blame output.
@@ -7,6 +6,7 @@ platform: linux
maintainer: dandavison maintainer: dandavison
homepage: https://github.com/dandavison/delta homepage: https://github.com/dandavison/delta
license: MIT license: MIT
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+3 -2
View File
@@ -1,12 +1,13 @@
---
name: hadolint name: hadolint
github: hadolint/hadolint github: hadolint/hadolint
description: A smarter Dockerfile linter that helps you build best practice Docker images. description: A smarter Dockerfile linter that helps you build best practice Docker
images.
arch: amd64 arch: amd64
platform: linux platform: linux
maintainer: hadolint maintainer: hadolint
homepage: https://github.com/hadolint/hadolint homepage: https://github.com/hadolint/hadolint
license: GPL-3.0 license: GPL-3.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -6,6 +6,7 @@ platform: linux
maintainer: Helm Contributors maintainer: Helm Contributors
homepage: https://github.com/helm/helm homepage: https://github.com/helm/helm
license: Apache-2.0 license license: Apache-2.0 license
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -8,6 +8,7 @@ platform: linux
maintainer: Helmfile Contributors maintainer: Helmfile Contributors
homepage: https://github.com/helmfile/helmfile homepage: https://github.com/helmfile/helmfile
license: MIT license: MIT
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -6,6 +6,7 @@ platform: linux
maintainer: unkin maintainer: unkin
homepage: https://linuxcontainers.org/incus/ homepage: https://linuxcontainers.org/incus/
license: Apache-2.0 license: Apache-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el9 - almalinux/el9
+1
View File
@@ -6,6 +6,7 @@ platform: linux
maintainer: unkin maintainer: unkin
homepage: https://github.com/jellyfin/jellyfin-ffmpeg homepage: https://github.com/jellyfin/jellyfin-ffmpeg
license: GPL-3.0 license: GPL-3.0
dist_tag: false
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+14 -12
View File
@@ -1,13 +1,15 @@
---
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository: [almalinux/el8]
version: 10.10.7
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository: [almalinux/el9]
version: 10.10.7
description: jellyfin-server package
github: unknown/jellyfin-server
name: jellyfin-server name: jellyfin-server
github: unknown/jellyfin-server
description: jellyfin-server package
dist_tag: false
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 10.10.7
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 10.10.7
+14 -12
View File
@@ -1,13 +1,15 @@
---
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository: [almalinux/el8]
version: 10.10.7
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository: [almalinux/el9]
version: 10.10.7
description: jellyfin-web package
github: unknown/jellyfin-web
name: jellyfin-web name: jellyfin-web
github: unknown/jellyfin-web
description: jellyfin-web package
dist_tag: false
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 10.10.7
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 10.10.7
+9 -8
View File
@@ -1,4 +1,13 @@
name: jsonnet-language-server
github: grafana/jsonnet-language-server
description: Jsonnet Language Server Protocol implementation for the Jsonnet templating
language.
arch: amd64 arch: amd64
platform: linux
maintainer: Grafana Labs
homepage: https://github.com/grafana/jsonnet-language-server
license: Apache-2.0
dist_tag: true
builds: builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1 release: 1
@@ -10,11 +19,3 @@ builds:
repository: repository:
- almalinux/el9 - almalinux/el9
version: 0.17.0 version: 0.17.0
description: Jsonnet Language Server Protocol implementation for the Jsonnet templating
language.
github: grafana/jsonnet-language-server
homepage: https://github.com/grafana/jsonnet-language-server
license: Apache-2.0
maintainer: Grafana Labs
name: jsonnet-language-server
platform: linux
+8 -7
View File
@@ -1,4 +1,12 @@
name: jsonnet-lint
github: google/go-jsonnet
description: Linter for Jsonnet
arch: amd64 arch: amd64
platform: linux
maintainer: Google
homepage: https://github.com/google/go-jsonnet
license: Apache-2.0
dist_tag: true
builds: builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1 release: 1
@@ -10,10 +18,3 @@ builds:
repository: repository:
- almalinux/el9 - almalinux/el9
version: 0.22.0 version: 0.22.0
description: Linter for Jsonnet
github: google/go-jsonnet
homepage: https://github.com/google/go-jsonnet
license: Apache-2.0
maintainer: Google
name: jsonnet-lint
platform: linux
+8 -7
View File
@@ -1,4 +1,12 @@
name: jsonnet
github: google/go-jsonnet
description: A data templating language
arch: amd64 arch: amd64
platform: linux
maintainer: Google
homepage: https://github.com/google/go-jsonnet
license: Apache-2.0
dist_tag: true
builds: builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1 release: 1
@@ -10,10 +18,3 @@ builds:
repository: repository:
- almalinux/el9 - almalinux/el9
version: 0.22.0 version: 0.22.0
description: A data templating language
github: google/go-jsonnet
homepage: https://github.com/google/go-jsonnet
license: Apache-2.0
maintainer: Google
name: jsonnet
platform: linux
+1 -1
View File
@@ -1,4 +1,3 @@
---
name: kubecolor name: kubecolor
github: kubecolor/kubecolor github: kubecolor/kubecolor
description: Colorize your kubectl output description: Colorize your kubectl output
@@ -7,6 +6,7 @@ platform: linux
maintainer: kubecolor maintainer: kubecolor
homepage: https://github.com/kubecolor/kubecolor homepage: https://github.com/kubecolor/kubecolor
license: Apache-2.0 license: Apache-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -6,6 +6,7 @@ platform: linux
maintainer: Yann Hamon maintainer: Yann Hamon
homepage: https://github.com/yannh/kubeconform homepage: https://github.com/yannh/kubeconform
license: Apache-2.0 license: Apache-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1 -1
View File
@@ -1,4 +1,3 @@
---
name: kubectx name: kubectx
github: ahmetb/kubectx github: ahmetb/kubectx
description: Faster way to switch between clusters and namespaces in kubectl. description: Faster way to switch between clusters and namespaces in kubectl.
@@ -7,6 +6,7 @@ platform: linux
maintainer: ahmetb maintainer: ahmetb
homepage: https://github.com/ahmetb/kubectx homepage: https://github.com/ahmetb/kubectx
license: Apache-2.0 license: Apache-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+11 -9
View File
@@ -1,4 +1,3 @@
---
name: kustomize name: kustomize
github: kubernetes-sigs/kustomize github: kubernetes-sigs/kustomize
description: Kubernetes native configuration management description: Kubernetes native configuration management
@@ -7,13 +6,16 @@ platform: linux
maintainer: kubernetes-sigs maintainer: kubernetes-sigs
homepage: https://github.com/kubernetes-sigs/kustomize homepage: https://github.com/kubernetes-sigs/kustomize
license: Apache-2.0 license: Apache-2.0
dist_tag: true
github_release_pattern: ^kustomize/v.* github_release_pattern: ^kustomize/v.*
builds: builds:
- repository: [almalinux/el8] - repository:
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest - almalinux/el8
release: '1' image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
version: 5.8.1 release: '1'
- repository: [almalinux/el9] version: 5.8.1
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest - repository:
release: '1' - almalinux/el9
version: 5.8.1 image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
version: 5.8.1
+1 -1
View File
@@ -1,4 +1,3 @@
---
name: lazydocker name: lazydocker
github: jesseduffield/lazydocker github: jesseduffield/lazydocker
description: The lazier way to manage everything docker. description: The lazier way to manage everything docker.
@@ -7,6 +6,7 @@ platform: linux
maintainer: jesseduffield maintainer: jesseduffield
homepage: https://github.com/jesseduffield/lazydocker homepage: https://github.com/jesseduffield/lazydocker
license: MIT license: MIT
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+17 -15
View File
@@ -1,18 +1,20 @@
--- name: libfoundationdb
arch: amd64
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository: [almalinux/el8]
version: 7.3.71
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository: [almalinux/el9]
version: 7.3.71
description: FoundationDB client library - Shared library for FoundationDB applications
github: apple/foundationdb github: apple/foundationdb
description: FoundationDB client library - Shared library for FoundationDB applications
arch: amd64
platform: linux
maintainer: FoundationDB Community
homepage: https://github.com/apple/foundationdb homepage: https://github.com/apple/foundationdb
license: Apache-2.0 license: Apache-2.0
maintainer: FoundationDB Community dist_tag: true
name: libfoundationdb builds:
platform: linux - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 7.3.71
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 7.3.71
+3 -2
View File
@@ -1,12 +1,13 @@
---
name: neovim-glibc-2.17 name: neovim-glibc-2.17
github: neovim/neovim-releases github: neovim/neovim-releases
description: Vim-fork focused on extensibility and usability (glibc 2.17 compatible build). description: Vim-fork focused on extensibility and usability (glibc 2.17 compatible
build).
arch: amd64 arch: amd64
platform: linux platform: linux
maintainer: neovim maintainer: neovim
homepage: https://neovim.io homepage: https://neovim.io
license: Apache-2.0 license: Apache-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1 -1
View File
@@ -1,4 +1,3 @@
---
name: neovim name: neovim
github: neovim/neovim github: neovim/neovim
description: Vim-fork focused on extensibility and usability. description: Vim-fork focused on extensibility and usability.
@@ -7,6 +6,7 @@ platform: linux
maintainer: neovim maintainer: neovim
homepage: https://neovim.io homepage: https://neovim.io
license: Apache-2.0 license: Apache-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: GoReleaser maintainer: GoReleaser
homepage: https://nfpm.goreleaser.com/ homepage: https://nfpm.goreleaser.com/
license: MIT license: MIT
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -6,6 +6,7 @@ platform: linux
maintainer: Prometheus maintainer: Prometheus
homepage: https://github.com/prometheus/node_exporter homepage: https://github.com/prometheus/node_exporter
license: Apache-2.0 license license: Apache-2.0 license
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -8,6 +8,7 @@ platform: linux
maintainer: Hashicorp maintainer: Hashicorp
homepage: https://github.com/hashicorp/nomad-autoscaler homepage: https://github.com/hashicorp/nomad-autoscaler
license: Mozilla Public License, version 2.0 license: Mozilla Public License, version 2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+18 -15
View File
@@ -1,18 +1,21 @@
--- name: nomad
arch: amd64
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository: [almalinux/el8]
version: 1.10.1
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository: [almalinux/el9]
version: 1.10.1
description: A simple and flexible scheduler and orchestrator to deploy and manage containers and non-containerized applications across on-premises and clouds at scale.
github: unknown/nomad github: unknown/nomad
description: A simple and flexible scheduler and orchestrator to deploy and manage
containers and non-containerized applications across on-premises and clouds at scale.
arch: amd64
platform: linux
maintainer: HashiCorp
homepage: https://www.nomadproject.io/ homepage: https://www.nomadproject.io/
license: BUSL-1.1 license: BUSL-1.1
maintainer: HashiCorp dist_tag: true
name: nomad builds:
platform: linux - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 1.10.1
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 1.10.1
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: nzbgetcom maintainer: nzbgetcom
homepage: https://github.com/nzbgetcom/nzbget homepage: https://github.com/nzbgetcom/nzbget
license: GPL-2.0 license: GPL-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+17 -15
View File
@@ -1,18 +1,20 @@
--- name: nzbget_exporter
arch: amd64
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository: [almalinux/el8]
version: 2025.08.03
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository: [almalinux/el9]
version: 2025.08.03
description: Prometheus exporter for NZBGet
github: frebib/nzbget-exporter github: frebib/nzbget-exporter
description: Prometheus exporter for NZBGet
arch: amd64
platform: linux
maintainer: Prometheus
homepage: https://github.com/frebib/nzbget-exporter homepage: https://github.com/frebib/nzbget-exporter
license: MIT license: MIT
maintainer: Prometheus dist_tag: true
name: nzbget_exporter builds:
platform: linux - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 2025.08.03
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 2025.08.03
@@ -1,12 +1,13 @@
name: openbao-plugin-secret-consul name: openbao-plugin-secret-consul
github: openbao/openbao-plugins github: openbao/openbao-plugins
github_release_pattern: "^secrets-consul-v.*"
description: OpenBao secrets engine plugin for HashiCorp Consul description: OpenBao secrets engine plugin for HashiCorp Consul
arch: amd64 arch: amd64
platform: linux platform: linux
maintainer: OpenBao Community maintainer: OpenBao Community
homepage: https://github.com/openbao/openbao-plugins homepage: https://github.com/openbao/openbao-plugins
license: MPL-2.0 license: MPL-2.0
dist_tag: true
github_release_pattern: ^secrets-consul-v.*
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
@@ -1,12 +1,13 @@
name: openbao-plugin-secret-nomad name: openbao-plugin-secret-nomad
github: openbao/openbao-plugins github: openbao/openbao-plugins
github_release_pattern: "^secrets-nomad-v.*"
description: OpenBao secrets engine plugin for HashiCorp Nomad description: OpenBao secrets engine plugin for HashiCorp Nomad
arch: amd64 arch: amd64
platform: linux platform: linux
maintainer: OpenBao Community maintainer: OpenBao Community
homepage: https://github.com/openbao/openbao-plugins homepage: https://github.com/openbao/openbao-plugins
license: MPL-2.0 license: MPL-2.0
dist_tag: true
github_release_pattern: ^secrets-nomad-v.*
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -6,6 +6,7 @@ platform: linux
maintainer: OpenBao Community maintainer: OpenBao Community
homepage: https://github.com/openbao/openbao-plugins homepage: https://github.com/openbao/openbao-plugins
license: MPL-2.0 license: MPL-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -6,6 +6,7 @@ platform: linux
maintainer: HashiCorp maintainer: HashiCorp
homepage: https://www.packer.io/ homepage: https://www.packer.io/
license: BUSL-1.1 license: BUSL-1.1
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+8 -7
View File
@@ -1,4 +1,12 @@
name: pgbouncer_exporter
github: prometheus-community/pgbouncer_exporter
description: Prometheus exporter for PgBouncer
arch: amd64 arch: amd64
platform: linux
maintainer: Prometheus
homepage: https://github.com/prometheus-community/pgbouncer_exporter
license: Apache-2.0 license
dist_tag: true
builds: builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1 release: 1
@@ -10,10 +18,3 @@ builds:
repository: repository:
- almalinux/el9 - almalinux/el9
version: 0.12.0 version: 0.12.0
description: Prometheus exporter for PgBouncer
github: prometheus-community/pgbouncer_exporter
homepage: https://github.com/prometheus-community/pgbouncer_exporter
license: Apache-2.0 license
maintainer: Prometheus
name: pgbouncer_exporter
platform: linux
+1
View File
@@ -6,6 +6,7 @@ platform: linux
maintainer: Prometheus maintainer: Prometheus
homepage: https://github.com/prometheus-community/postgres_exporter homepage: https://github.com/prometheus-community/postgres_exporter
license: Apache-2.0 license license: Apache-2.0 license
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+17 -15
View File
@@ -1,17 +1,19 @@
---
arch: amd64
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository: [almalinux/el8]
version: 1.0.3
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository: [almalinux/el9]
version: 1.0.3
description: A script and service to initialise puppet for the unkin environmnet.
github: unknown/puppet-initial
license: MIT
maintainer: UNKIN
name: puppet-initial name: puppet-initial
github: unknown/puppet-initial
description: A script and service to initialise puppet for the unkin environmnet.
arch: amd64
platform: linux platform: linux
maintainer: UNKIN
license: MIT
dist_tag: true
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 1.0.3
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 1.0.3
+17 -15
View File
@@ -1,18 +1,20 @@
--- name: puppetdb_exporter
arch: amd64
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository: [almalinux/el8]
version: 1.1.0
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository: [almalinux/el9]
version: 1.1.0
description: Prometheus exporter for PuppetDB
github: camptocamp/prometheus-puppetdb-exporter github: camptocamp/prometheus-puppetdb-exporter
description: Prometheus exporter for PuppetDB
arch: amd64
platform: linux
maintainer: Comptocamp
homepage: https://github.com/camptocamp/prometheus-puppetdb-exporter homepage: https://github.com/camptocamp/prometheus-puppetdb-exporter
license: Apache 2.0 License license: Apache 2.0 License
maintainer: Comptocamp dist_tag: true
name: puppetdb_exporter builds:
platform: linux - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 1.1.0
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 1.1.0
+1
View File
@@ -6,6 +6,7 @@ platform: linux
maintainer: Astral.sh maintainer: Astral.sh
homepage: https://docs.astral.sh/ruff/ homepage: https://docs.astral.sh/ruff/
license: Apache-2.0 license: Apache-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1 -1
View File
@@ -1,4 +1,3 @@
---
name: sops name: sops
github: getsops/sops github: getsops/sops
description: Simple and flexible tool for managing secrets. description: Simple and flexible tool for managing secrets.
@@ -7,6 +6,7 @@ platform: linux
maintainer: getsops maintainer: getsops
homepage: https://github.com/getsops/sops homepage: https://github.com/getsops/sops
license: MPL-2.0 license: MPL-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -6,6 +6,7 @@ platform: linux
maintainer: Stalwart Labs maintainer: Stalwart Labs
homepage: https://stalw.art homepage: https://stalw.art
license: AGPL-3.0 license: AGPL-3.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: Stalwart Labs maintainer: Stalwart Labs
homepage: https://stalw.art homepage: https://stalw.art
license: AGPL-3.0 license: AGPL-3.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -6,6 +6,7 @@ platform: linux
maintainer: Stalwart Labs maintainer: Stalwart Labs
homepage: https://stalw.art homepage: https://stalw.art
license: AGPL-3.0 license: AGPL-3.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: starship maintainer: starship
homepage: https://starship.rs homepage: https://starship.rs
license: ISC license: ISC
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1 -1
View File
@@ -1,4 +1,3 @@
---
name: stern name: stern
github: stern/stern github: stern/stern
description: Multi pod and container log tailing for Kubernetes. description: Multi pod and container log tailing for Kubernetes.
@@ -7,6 +6,7 @@ platform: linux
maintainer: stern maintainer: stern
homepage: https://github.com/stern/stern homepage: https://github.com/stern/stern
license: Apache-2.0 license: Apache-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1 -1
View File
@@ -1,4 +1,3 @@
---
name: tea name: tea
github: unknown/tea github: unknown/tea
description: The official CLI for Gitea. description: The official CLI for Gitea.
@@ -7,6 +6,7 @@ platform: linux
maintainer: Gitea maintainer: Gitea
homepage: https://gitea.com/gitea/tea homepage: https://gitea.com/gitea/tea
license: MIT license: MIT
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -9,6 +9,7 @@ platform: linux
maintainer: HashiCorp maintainer: HashiCorp
homepage: https://terraform.io/ homepage: https://terraform.io/
license: BUSL-1.1 license: BUSL-1.1
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: Gruntwork maintainer: Gruntwork
homepage: https://github.com/gruntwork-io/terragrunt homepage: https://github.com/gruntwork-io/terragrunt
license: MIT license: MIT
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: Terraform Linters maintainer: Terraform Linters
homepage: https://github.com/terraform-linters/tflint homepage: https://github.com/terraform-linters/tflint
license: MPL-2.0 license: MPL-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+24 -24
View File
@@ -1,27 +1,27 @@
--- name: unkin-ca-certificates
arch: amd64
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 2025.07.13
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 2025.07.13
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- fedora/42
- fedora/43
- fedora/44
version: 2025.07.13
description: ca-certificates for the unkin site
github: unknown/unkin-ca-certificates github: unknown/unkin-ca-certificates
description: ca-certificates for the unkin site
arch: amd64
platform: linux
maintainer: Unkin
homepage: https://vault.query.consul:8200 homepage: https://vault.query.consul:8200
license: Apache-2.0 license: Apache-2.0
maintainer: Unkin dist_tag: true
name: unkin-ca-certificates builds:
platform: linux - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 2025.07.13
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 2025.07.13
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- fedora/42
- fedora/43
- fedora/44
version: 2025.07.13
+17 -15
View File
@@ -1,18 +1,20 @@
--- name: unkin-undionly-kpxe
arch: amd64
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository: [almalinux/el8]
version: 20250712.0.2
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository: [almalinux/el9]
version: 20250712.0.2
description: iPXE network bootloader
github: ipxe/ipxe github: ipxe/ipxe
description: iPXE network bootloader
arch: amd64
platform: linux
maintainer: iPXE
homepage: https://github.com/ipxe/ipxe homepage: https://github.com/ipxe/ipxe
license: GPL-2.0 license license: GPL-2.0 license
maintainer: iPXE dist_tag: true
name: unkin-undionly-kpxe builds:
platform: linux - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 20250712.0.2
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 20250712.0.2
+19 -15
View File
@@ -1,18 +1,22 @@
--- name: unrar
arch: amd64
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository: [almalinux/el8]
version: '7.20'
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository: [almalinux/el9]
version: '7.20'
description: WinRAR is a powerful archive manager. It can backup your data and reduce the size of email attachments, open and unpack RAR, ZIP and other files downloaded from Internet, create new archives in RAR and ZIP file format.
github: unknown/unrar github: unknown/unrar
description: WinRAR is a powerful archive manager. It can backup your data and reduce
the size of email attachments, open and unpack RAR, ZIP and other files downloaded
from Internet, create new archives in RAR and ZIP file format.
arch: amd64
platform: linux
maintainer: RARLAB
homepage: https://www.rarlab.com/ homepage: https://www.rarlab.com/
license: Freeware (UNRAR 7.11 freeware Copyright (c) 1993-2025 Alexander Roshal) license: Freeware (UNRAR 7.11 freeware Copyright (c) 1993-2025 Alexander Roshal)
maintainer: RARLAB dist_tag: true
name: unrar builds:
platform: linux - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: '7.20'
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: '7.20'
+1
View File
@@ -6,6 +6,7 @@ platform: linux
maintainer: Astral.sh maintainer: Astral.sh
homepage: https://docs.astral.sh/uv/ homepage: https://docs.astral.sh/uv/
license: Apache-2.0 license: Apache-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: Helmfile Contributors maintainer: Helmfile Contributors
homepage: https://github.com/helmfile/vals homepage: https://github.com/helmfile/vals
license: Apache-2.0 license: Apache-2.0
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -9,6 +9,7 @@ platform: linux
maintainer: HashiCorp maintainer: HashiCorp
homepage: https://github.com/hashicorp/vault homepage: https://github.com/hashicorp/vault
license: BUSL-1.1 license: BUSL-1.1
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: VictoriaMetrics maintainer: VictoriaMetrics
homepage: https://github.com/VictoriaMetrics/VictoriaLogs homepage: https://github.com/VictoriaMetrics/VictoriaLogs
license: Apache-2.0 license license: Apache-2.0 license
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: VictoriaMetrics maintainer: VictoriaMetrics
homepage: https://github.com/VictoriaMetrics/VictoriaLogs homepage: https://github.com/VictoriaMetrics/VictoriaLogs
license: Apache-2.0 license license: Apache-2.0 license
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: VictoriaMetrics maintainer: VictoriaMetrics
homepage: https://github.com/VictoriaMetrics/VictoriaMetrics homepage: https://github.com/VictoriaMetrics/VictoriaMetrics
license: Apache-2.0 license license: Apache-2.0 license
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -6,6 +6,7 @@ platform: linux
maintainer: VictoriaMetrics maintainer: VictoriaMetrics
homepage: https://github.com/VictoriaMetrics/VictoriaMetrics homepage: https://github.com/VictoriaMetrics/VictoriaMetrics
license: Apache-2.0 license license: Apache-2.0 license
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: VictoriaMetrics maintainer: VictoriaMetrics
homepage: https://github.com/VictoriaMetrics/VictoriaMetrics homepage: https://github.com/VictoriaMetrics/VictoriaMetrics
license: Apache-2.0 license license: Apache-2.0 license
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: VictoriaMetrics maintainer: VictoriaMetrics
homepage: https://github.com/VictoriaMetrics/VictoriaMetrics homepage: https://github.com/VictoriaMetrics/VictoriaMetrics
license: Apache-2.0 license license: Apache-2.0 license
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: VictoriaMetrics maintainer: VictoriaMetrics
homepage: https://github.com/VictoriaMetrics/VictoriaMetrics homepage: https://github.com/VictoriaMetrics/VictoriaMetrics
license: Apache-2.0 license license: Apache-2.0 license
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1
View File
@@ -7,6 +7,7 @@ platform: linux
maintainer: VictoriaMetrics maintainer: VictoriaMetrics
homepage: https://github.com/VictoriaMetrics/VictoriaMetrics homepage: https://github.com/VictoriaMetrics/VictoriaMetrics
license: Apache-2.0 license license: Apache-2.0 license
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+25 -24
View File
@@ -1,27 +1,28 @@
--- name: xh
arch: amd64
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 0.25.3
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 0.25.3
- repository:
- fedora/42
- fedora/43
- fedora/44
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1
version: 0.25.3
description: A friendly and fast tool for sending HTTP requests (HTTPie reimplementation in Rust)
github: ducaale/xh github: ducaale/xh
description: A friendly and fast tool for sending HTTP requests (HTTPie reimplementation
in Rust)
arch: amd64
platform: linux
maintainer: ducaale
homepage: https://github.com/ducaale/xh homepage: https://github.com/ducaale/xh
license: MIT license: MIT
maintainer: ducaale dist_tag: true
name: xh builds:
platform: linux - image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository:
- almalinux/el8
version: 0.25.3
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository:
- almalinux/el9
version: 0.25.3
- repository:
- fedora/42
- fedora/43
- fedora/44
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1
version: 0.25.3
+3 -2
View File
@@ -1,12 +1,13 @@
---
name: yq name: yq
github: mikefarah/yq github: mikefarah/yq
description: yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor. description: yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties
processor.
arch: amd64 arch: amd64
platform: linux platform: linux
maintainer: mikefarah maintainer: mikefarah
homepage: https://github.com/mikefarah/yq homepage: https://github.com/mikefarah/yq
license: MIT license: MIT
dist_tag: true
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+43 -54
View File
@@ -113,6 +113,11 @@ METADATA_SCHEMA = {
'required': False, 'required': False,
'empty': False 'empty': False
}, },
'dist_tag': {
'type': 'boolean',
'required': False,
'default': False
},
'builds': { 'builds': {
'type': 'list', 'type': 'list',
'required': True, 'required': True,
@@ -178,6 +183,7 @@ class PackageMetadata:
maintainer: str = "" maintainer: str = ""
homepage: str = "" homepage: str = ""
license: str = "" license: str = ""
dist_tag: bool = False
builds: List[Build] = None builds: List[Build] = None
def __post_init__(self): def __post_init__(self):
@@ -534,39 +540,48 @@ def normalize_version(version: str) -> str:
return ''.join(normalized_parts) return ''.join(normalized_parts)
def get_rpm_dist_suffix(distro: str) -> str: def get_rpm_dist_tag(distro: str) -> str:
""" """
Map a distro path to the RPM dist tag suffix used in package filenames. Map a distro path to its RPM dist tag string.
Examples: Examples:
'almalinux/el9' -> '.el9' 'almalinux/el9' -> 'el9'
'fedora/43' -> '.fc43' 'fedora/43' -> 'fc43'
""" """
if distro.startswith('almalinux/'): if distro.startswith('almalinux/'):
return '.' + distro.split('/', 1)[1] return distro.split('/', 1)[1]
if distro.startswith('fedora/'): if distro.startswith('fedora/'):
return '.fc' + distro.split('/', 1)[1] return 'fc' + distro.split('/', 1)[1]
return '' return ''
def check_package_exists(package_name: str, version: str, release: str, distro: str = '') -> bool: def effective_release(base_release: str, distro: str, use_dist_tag: bool) -> str:
"""Return the release string to use for building and registry checks.
When use_dist_tag is True the dist tag is appended so different distros
produce distinct entries in the package registry (e.g. '1.el9', '1.fc43').
"""
if not use_dist_tag:
return base_release
tag = get_rpm_dist_tag(distro)
return f"{base_release}.{tag}" if tag else base_release
def check_package_exists(package_name: str, version: str, release: str) -> bool:
""" """
Check if a package version exists in the Gitea package registry. Check if a package version exists in the Gitea package registry.
When distro is provided the check is distro-aware: it lists the files Distro disambiguation is handled by the caller via the release string:
attached to the package version and returns True only when a file whose when dist_tag is enabled the caller appends the dist tag to release
name contains the expected RPM dist suffix (e.g. '.el9', '.fc43') is (e.g. '1.el9', '1.fc43') so each distro maps to a unique version entry.
found. This prevents a package built for almalinux/el9 from being
mistaken for a fedora/43 build (and vice-versa).
Args: Args:
package_name: Name of the package package_name: Name of the package
version: Version string version: Version string
release: Release number release: Effective release (may include dist tag suffix)
distro: Target distro path (e.g. 'almalinux/el9', 'fedora/43')
Returns: Returns:
True if package exists for the given distro, False otherwise True if package exists, False otherwise
""" """
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@@ -595,40 +610,9 @@ def check_package_exists(package_name: str, version: str, release: str, distro:
if response.status_code == 200: if response.status_code == 200:
package_info = response.json() package_info = response.json()
if not package_info.get('id'): exists = bool(package_info.get('id'))
logger.debug(f"Package {package_name}:{full_version} not found") logger.debug(f"Package {package_name}:{full_version} {'exists' if exists else 'not found'}")
return False return exists
# No distro filter treat any file as a match
if not distro:
logger.debug(f"Package {package_name}:{full_version} exists")
return True
# Distro-aware check: inspect individual file names for the dist suffix
dist_suffix = get_rpm_dist_suffix(distro)
if not dist_suffix:
logger.debug(f"Package {package_name}:{full_version} exists (no dist suffix for {distro})")
return True
files_url = f"{base_url}/api/v1/packages/{owner}/{package_type}/{package_name}/{full_version}/files"
logger.debug(f"Checking distro-specific files: {files_url}")
files_response = _gitea_session.get(files_url, timeout=10)
if files_response.status_code == 200:
files = files_response.json()
for file_info in files:
if dist_suffix in file_info.get('name', ''):
logger.debug(f"Package {package_name}:{full_version} exists for {distro}")
return True
logger.debug(f"Package {package_name}:{full_version} not found for {distro} (no {dist_suffix} file)")
return False
else:
# If files endpoint fails fall back to treating version existence as a match
logger.warning(
f"Could not list files for {package_name}:{full_version}: "
f"{files_response.status_code} assuming package exists"
)
return True
elif response.status_code == 404: elif response.status_code == 404:
logger.debug(f"Package {package_name}:{full_version} not found (404)") logger.debug(f"Package {package_name}:{full_version} not found (404)")
@@ -1324,6 +1308,7 @@ class Builder:
package_name = metadata.get('name', package_dir.name) package_name = metadata.get('name', package_dir.name)
build_configs = metadata.get('builds', []) build_configs = metadata.get('builds', [])
use_dist_tag = metadata.get('dist_tag', False)
if not build_configs: if not build_configs:
self.logger.warning(f"No builds in metadata.yaml for {package_name}") self.logger.warning(f"No builds in metadata.yaml for {package_name}")
@@ -1342,7 +1327,8 @@ class Builder:
if repositories and base_image and version and release: if repositories and base_image and version and release:
# Use the first repository as the distro identifier # Use the first repository as the distro identifier
build_distro = repositories[0] if repositories else 'unknown' build_distro = repositories[0] if repositories else 'unknown'
packages.append(PackageInfo(package_name, version, str(release), package_dir, build_distro, base_image)) rel = effective_release(str(release), build_distro, use_dist_tag)
packages.append(PackageInfo(package_name, version, rel, package_dir, build_distro, base_image))
else: else:
# Build for specific distro # Build for specific distro
for build_config in build_configs: for build_config in build_configs:
@@ -1354,7 +1340,8 @@ class Builder:
# Check if the target distro matches any repository # Check if the target distro matches any repository
if distro in repositories and base_image and version and release: if distro in repositories and base_image and version and release:
packages.append(PackageInfo(package_name, version, str(release), package_dir, distro, base_image)) rel = effective_release(str(release), distro, use_dist_tag)
packages.append(PackageInfo(package_name, version, rel, package_dir, distro, base_image))
break break
else: else:
# If no matching distro found, log a warning # If no matching distro found, log a warning
@@ -1407,6 +1394,8 @@ class Builder:
with open(metadata_file, 'r') as f: with open(metadata_file, 'r') as f:
metadata = yaml.safe_load(f) metadata = yaml.safe_load(f)
use_dist_tag = metadata.get('dist_tag', False)
# Find base image and validate version/release for the specified distro # Find base image and validate version/release for the specified distro
build_configs = metadata.get('builds', []) build_configs = metadata.get('builds', [])
base_image = None base_image = None
@@ -1450,7 +1439,8 @@ class Builder:
self.logger.error(f"Error reading metadata.yaml for {package}: {e}") self.logger.error(f"Error reading metadata.yaml for {package}: {e}")
return False return False
package_info = PackageInfo(package, version, release, package_dir, distro, base_image) rel = effective_release(release, distro, use_dist_tag)
package_info = PackageInfo(package, version, rel, package_dir, distro, base_image)
return self._build_package(package_info, dry_run, force, native, buildah) return self._build_package(package_info, dry_run, force, native, buildah)
def build_all(self, dry_run: bool = False, force: bool = False, parallel: int = 4, distro: str = 'el/9', native: bool = False, buildah: bool = False) -> bool: def build_all(self, dry_run: bool = False, force: bool = False, parallel: int = 4, distro: str = 'el/9', native: bool = False, buildah: bool = False) -> bool:
@@ -1532,8 +1522,7 @@ class Builder:
if check_package_exists( if check_package_exists(
package_info.name, package_info.name,
package_info.version, package_info.version,
package_info.release, package_info.release
package_info.distro
): ):
self.logger.info( self.logger.info(
f"Skipping {package_info} (already exists in repository)" f"Skipping {package_info} (already exists in repository)"