fix up hub arch syncing

sync all arch hubs when fedora is 25 or less
sync only primary and s390 for 26 and up

Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
This commit is contained in:
Dennis Gilmore 2017-03-02 00:56:00 +00:00
parent e55fb9ba3b
commit 247b7d4849

View file

@ -115,7 +115,10 @@ if __name__ == '__main__':
{% if env == 'staging' %}
arches = ["primary"]
{% else %}
arches = ["primary", "arm", "ppc", "s390"]
if version <= "25":
arches = ["primary", "arm", "ppc", "s390"]
else:
arches = ["primary", "s390"]
{% endif %}
data = requests.get(urljoin(BASEURL, 'api/collections'), verify=VERIFY).json()