Skip to content

Commit

Permalink
[skip-ci] RPM: bats requirement only on Fedora
Browse files Browse the repository at this point in the history
The bats package is not available on RHEL. It's in Fedora and EPEL.

Having bats as a requirement for the `skopeo-tests` subpackage will
cause installibility test failures for RHEL 10 / C10S gating tests.

This commit makes `bats` a requirement only on Fedora. RHEL and CentOS
Stream gating will need to fetch bats through separately enabling EPEL
or other means.

Podman PR with similar change: containers/podman#22632

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
  • Loading branch information
lsm5 committed May 7, 2024
1 parent eb5bdfa commit ceef4fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpm/skopeo.spec
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ registries without the need to pull them
Summary: Tests for %{name}

Requires: %{name} = %{epoch}:%{version}-%{release}
%if %{defined fedora}
Requires: bats
%endif
Requires: gnupg
Requires: jq
Requires: golang
Expand Down

0 comments on commit ceef4fd

Please sign in to comment.