From 55a13246144c310eff14f5765a960f6338f53ec7 Mon Sep 17 00:00:00 2001 From: Daniel Milnes Date: Mar 21 2025 00:53:43 +0000 Subject: Update Variable Type to Handle EPEL10 Branching EPEL10 has started branching and doing point releases. The current variable parsing doesn't handle this, so swap from an `int` to a `float` when doing version comparisons. --- diff --git a/bin/fetch-repository-dbs.py b/bin/fetch-repository-dbs.py index 72fc243..422ee36 100755 --- a/bin/fetch-repository-dbs.py +++ b/bin/fetch-repository-dbs.py @@ -336,7 +336,7 @@ def get_repository_urls_for(product, version): release + "-updates-testing", ), ] - elif product == "FEDORA-EPEL" and int(version) < 8: + elif product == "FEDORA-EPEL" and float(version) < 8: release = "epel-{}".format(version).lower() return [ ("{}/pub/epel/{}/x86_64/repodata/".format(MIRROR, version), release), @@ -345,7 +345,7 @@ def get_repository_urls_for(product, version): release + "-testing", ), ] - elif product == "FEDORA-EPEL" and int(version) >= 8: + elif product == "FEDORA-EPEL" and float(version) >= 8: release = "epel-{}".format(version).lower() return [ (