Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpmbuild: no Jinja-vars in config_opts keys #3152

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

praiskup
Copy link
Member

@praiskup praiskup commented Feb 20, 2024

The Jinja statements are only expanded in the values of the config_opts dictionary, not in the keys. The new mock-core-configs version 40.2 contains a Jinja condition in the package_manager value. Therefore, we cannot simply use it as a key in config_opts.

Since yum.conf and dnf.conf are aliases (starting from Mock 2.1), and dnf5.conf (starting from Mock 5.0+), we can avoid using the variable as a key entirely.

Relates: rpm-software-management/mock@5d620ad326d
Relates: rpm-software-management/mock#1332

Fixes: #3146

The Jinja statements are only expanded in the values of the config_opts
dictionary, not in the keys. The new mock-core-configs version 40.2
contains a Jinja condition in the package_manager value. Therefore, we
cannot simply use it as a key in config_opts.

Since yum.conf and dnf.conf are aliases (starting from Mock 2.1), and
dnf5.conf (starting from Mock 5.0+), we can avoid using the variable as
a key entirely.

Relates: rpm-software-management/mock@5d620ad326d
Relates: rpm-software-management/mock#1332
@praiskup praiskup merged commit 912196b into fedora-copr:main Feb 21, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

copr-rpmbuild config dislikes mock-core-configs 40.2
2 participants