Skip to content

Commit 5890181

Browse files
committed
fix: use %{python3} in mock-core-configs %check, add release note
On EPEL-8 the `python3` command is not on PATH (only /usr/libexec/platform-python), so the %check step failed with "python3: command not found" and broke the Copr build. The spec already defines `%global python3 /usr/libexec/platform-python` for el8 (and the standard macro on Fedora/RHEL10+), so use `%{python3}` instead of the bare `python3`. Add a release-notes fragment for the new test. Assisted-By: pi
1 parent 7f0922b commit 5890181

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

mock-core-configs/mock-core-configs.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ sed -i "s~@MOCK_DOCS@~$mock_docs~" %{buildroot}%{_sysconfdir}/mock/site-defaults
8686
%check
8787
# Validate the shipped templates directly from the source tree (the configs
8888
# live in mock-core-configs, not the mock package).
89-
PYTHONPATH=. python3 -m pytest tests
89+
PYTHONPATH=. %{python3} -m pytest tests
9090

9191
%post
9292
if [ -s /etc/os-release ]; then
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Add a `%check` test to mock-core-configs that asserts openEuler source
2+
repositories use the literal `openEuler-<version>` directory in
3+
`metalink ... path=` URLs rather than the untranslated `$releasever`,
4+
which the metalink `path=` form does not expand.

0 commit comments

Comments
 (0)