From eea79b867465ee6eb1f35fa06c9bed56f725e955 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Thu, 10 Aug 2023 19:42:00 +0200 Subject: [PATCH] rpmbuild: fix the check if a priority was set We are setting `priority=None` in the `dnf.conf` and getting: Invalid configuration value: priority= in /var/lib/mock/fedora-38-x86_64-bootstrap-1691688959.249909/root/etc/dnf/dnf.conf; invalid value --- rpmbuild/mock.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpmbuild/mock.cfg.j2 b/rpmbuild/mock.cfg.j2 index 1132f2ecc..55a188c70 100644 --- a/rpmbuild/mock.cfg.j2 +++ b/rpmbuild/mock.cfg.j2 @@ -52,7 +52,7 @@ metadata_expire=0 cost=1 best=1 -{%- if "priority" in repo and priority is not none %} +{%- if repo.get("priority") is not none %} priority={{ repo["priority"] }} {%- endif %}