Skip to content

Commit

Permalink
rpmbuild: fix the check if a priority was set
Browse files Browse the repository at this point in the history
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
  • Loading branch information
FrostyX committed Aug 10, 2023
1 parent 931a995 commit eea79b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpmbuild/mock.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down

0 comments on commit eea79b8

Please sign in to comment.