CI: On CentOS Stream, use EPEL Next, not EPEL proper

Also, make sure to never pull from EPEL's Koji repo,
as is also exposes RHEL packages in the metadata, but they error 403.

    [MIRROR] libgcrypt-1.10.0-4.el9_0.x86_64.rpm: Status code: 403 for https://infrastructure.fedoraproject.org/repo/rhel/rhel9/x86_64/rhel-9-for-x86_64-baseos-rpms/Packages/l/libgcrypt-1.10.0-4.el9_0.x86_64.rpm

We just pull from the CentOS Stream Koji repo and EPEL Next Koji repo.
See the mock config for centos-stream+epel-next-9.
This commit is contained in:
Miro Hrončok 2022-08-13 11:56:22 +02:00
parent 3d854401bd
commit c839a6f8aa

View File

@ -7,10 +7,12 @@ arch="x86_64"
case $NAME in case $NAME in
"Fedora Linux"|"Fedora") "Fedora Linux"|"Fedora")
mock="fedora-${version}-${arch}" mock="fedora-${version}-${arch}"
repos="local"
;; ;;
"CentOS Stream"|"Red Hat Enterprise Linux") "CentOS Stream"|"Red Hat Enterprise Linux")
mock="centos-stream+epel-${version}-${arch}" mock="centos-stream+epel-next-${version}-${arch}"
repos="local,local-centos-stream"
;; ;;
*) *)
@ -57,8 +59,8 @@ rpmbuild -bs ${pkgname}.spec
# build the SRPM in mock # build the SRPM in mock
res=0 res=0
mock -r $config --enablerepo=local init mock -r $config --enablerepo="$repos" init
mock -r $config --enablerepo=local "$@" ~/rpmbuild/SRPMS/${pkgname}-*.src.rpm || res=$? mock -r $config --enablerepo="$repos" "$@" ~/rpmbuild/SRPMS/${pkgname}-*.src.rpm || res=$?
# move the results to the artifacts directory, so we can examine them # move the results to the artifacts directory, so we can examine them
artifacts=${TEST_ARTIFACTS:-/tmp/artifacts} artifacts=${TEST_ARTIFACTS:-/tmp/artifacts}