osdict: Fix url arg detection for fedora-rawhide distro

This commit is contained in:
Cole Robinson 2019-06-07 21:12:55 -04:00
parent 6caa085f6c
commit 9fc20d4a97

View File

@ -546,25 +546,20 @@ class _OsVariant(object):
return None
# Red Hat distros
if self.name.endswith("-unknown"):
return "inst.repo"
try:
version = float(self.version)
except Exception:
return None
# Can hit this for -rawhide or -unknown
version = 999
if self.distro in ["centos", "rhel"]:
if version < 7:
return "method"
return "inst.repo"
if self.distro in ["centos", "rhel"] and version < 7:
return "method"
if self.distro in ["fedora"]:
if version < 19:
return "method"
return "inst.repo"
if self.distro in ["fedora"] and version < 19:
return "method"
return "inst.repo"
return None
def get_location(self, arch):
treelist = []