fedora repo files: If we are setting FedoraBranched to False when not enabled instead of undefining it, we need to test true or false instead of existance.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-05-02 00:05:22 +00:00
parent 217b872f56
commit 8bcd40c086
5 changed files with 14 additions and 14 deletions

View file

@ -1,7 +1,7 @@
[fedora-modular]
name=Fedora Modular $releasever - $basearch
failovermethod=priority
{% if ansible_distribution_major_version|int < ( FedoraBranchedNumber|int if FedoraBranched is defined else FedoraRawhideNumber|int ) %}
{% if ansible_distribution_major_version|int < ( FedoraBranchedNumber|int if FedoraBranched is True else FedoraRawhideNumber|int ) %}
baseurl=https://infrastructure.fedoraproject.org/pub/fedora/linux/releases/$releasever/Modular/$basearch/os/
{% else %}
baseurl=https://infrastructure.fedoraproject.org/pub/fedora/linux/development/$releasever/Modular/$basearch/os/
@ -15,7 +15,7 @@ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
[fedora-modular-debuginfo]
name=Fedora Modular $releasever - $basearch - Debug
failovermethod=priority
{% if ansible_distribution_major_version|int < ( FedoraBranchedNumber|int if FedoraBranched is defined else FedoraRawhideNumber|int ) %}
{% if ansible_distribution_major_version|int < ( FedoraBranchedNumber|int if FedoraBranched is True else FedoraRawhideNumber|int ) %}
baseurl=https://infrastructure.fedoraproject.org/pub/fedora/linux/releases/$releasever/Modular/$basearch/debug/tree/
{% else %}
baseurl=https://infrastructure.fedoraproject.org/pub/fedora/linux/development/$releasever/Modular/$basearch/debug/tree/
@ -29,7 +29,7 @@ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
[fedora-modular-source]
name=Fedora Modular $releasever - Source
failovermethod=priority
{% if ansible_distribution_major_version|int < ( FedoraBranchedNumber|int if FedoraBranched is defined else FedoraRawhideNumber|int ) %}
{% if ansible_distribution_major_version|int < ( FedoraBranchedNumber|int if FedoraBranched is True else FedoraRawhideNumber|int ) %}
baseurl=https://infrastructure.fedoraproject.org/pub/fedora/linux/releases/$releasever/Modular/source/tree/
{% else %}
baseurl=https://infrastructure.fedoraproject.org/pub/fedora/linux/development/$releasever/Modular/source/tree/