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 return None
# Red Hat distros # Red Hat distros
if self.name.endswith("-unknown"):
return "inst.repo"
try: try:
version = float(self.version) version = float(self.version)
except Exception: except Exception:
return None # Can hit this for -rawhide or -unknown
version = 999
if self.distro in ["centos", "rhel"]: if self.distro in ["centos", "rhel"] and version < 7:
if version < 7: return "method"
return "method"
return "inst.repo"
if self.distro in ["fedora"]: if self.distro in ["fedora"] and version < 19:
if version < 19: return "method"
return "method"
return "inst.repo" return "inst.repo"
return None
def get_location(self, arch): def get_location(self, arch):
treelist = [] treelist = []