parse distro version tuples

instead of using floats
This commit is contained in:
Min RK
2023-03-21 10:39:40 +01:00
parent aa72179afa
commit 150a3f62d6
2 changed files with 2 additions and 2 deletions

View File

@@ -206,7 +206,7 @@ def ensure_host_system_can_install_tljh():
# Require Ubuntu 20.04+ or Debian 10+
distro = get_os_release_variable("ID")
version = float(get_os_release_variable("VERSION_ID"))
version = get_os_release_variable("VERSION_ID")
if distro not in ["ubuntu", "debian"]:
print("The Littlest JupyterHub currently supports Ubuntu or Debian Linux only")
sys.exit(1)