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

copr-rpmbuild config dislikes mock-core-configs 40.2 #3146

Closed
praiskup opened this issue Feb 16, 2024 · 1 comment · Fixed by #3152
Closed

copr-rpmbuild config dislikes mock-core-configs 40.2 #3146

praiskup opened this issue Feb 16, 2024 · 1 comment · Fixed by #3152
Assignees

Comments

@praiskup
Copy link
Member

We use config_opts[f"{package_manager}"] = ... which is unnecessary, and breaks as the jinja from this pr is not expanded.

@praiskup
Copy link
Member Author

I installed this hot-fix:

--- /etc/copr-rpmbuild/mock.cfg.j2      2023-11-23 00:00:00.000000000 +0000
+++ /etc/copr-rpmbuild/mock.cfg.j2      2024-02-16 19:47:06.594883148 +0000
@@ -40,7 +40,7 @@
 {%- endif %}
 
 {% if repos %}
-config_opts[f"{config_opts.package_manager}.conf"] += """
+config_opts["dnf.conf"] += """
 {% for repo in repos %}
 [{{ repo["id"] }}]
 name='{{ repo["name"] }}'

This works because the newer versions of Mock have yum.conf equivalent to dnf.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant