Description of problem: Hi, I'm not sure it's 'mock, can be 'distribution-gpg-keys'? -> $ mock -r centos-stream+epel-9-x86_64 --rootdir=~/mock --localrepo=/devs/var/www/dnf.repo --chain --continue rpmbuild/rpm.src/pass-1.7.4-6.el9.src.rpm ... Total 12 MB/s | 55 MB 00:04 CentOS Stream 9 - BaseOS 1.6 MB/s | 1.6 kB 00:00 The GPG keys listed for the "CentOS Stream 9 - BaseOS" repository are already installed but they are not correct for this package. Check that the correct key URLs are configured for this repository.. Failing package is: alternatives-1.20-2.el9.x86_64 GPG Keys are configured as: file:///usr/share/distribution-gpg-keys/centos/RPM-GPG-KEY-CentOS-Official Public key for audit-libs-3.0.7-103.el9.x86_64.rpm is not installed. Failing package is: audit-libs-3.0.7-103.el9.x86_64 ... ... Version-Release number of selected component (if applicable): distribution-gpg-keys-1.85-1.el9.noarch mock-3.5-1.el9.noarch How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Thank you for the report. I missed this one, sorry for the delay. I tested with the Mock 5.0 release (in Centos Stream 9 container, on Fedora 38 host): $ mock --localrepo /var/tmp/localrepo --chain --continue --rootdir=~/mock -r centos-stream+epel-9-x86_64 https://kojipkgs.fedoraproject.org//packages/mock/5.0/1.el9/src/mock-5.0-1.el9.src.rpm INFO: mock.py version 5.0 starting (python version = 3.9.17, NVR = mock-5.0-1.el9)... Start(bootstrap): init plugins ... INFO: Packages successfully built in this order: INFO: /tmp/tmpzydl51xg/mock-5.0-1.el9.src.rpm $ rpm -q mock mock-core-configs distribution-gpg-keys mock-5.0-1.el9.noarch mock-core-configs-39-1.el9.noarch distribution-gpg-keys-1.89-1.el9.noarch This seems to work for me now. Can you plese retest with the new updated packages from https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-a5c155a6c0 ? Please reopen if you still see the same problem.