Switch to a version comparison library so that "10" is not less than "9"

This commit is contained in:
Micah Lee 2020-10-06 15:58:48 -07:00
parent 12ac68ecd8
commit 7fc81ca92f
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -37,6 +37,7 @@ import requests
import gpg
import shutil
import xml.etree.ElementTree as ET
from packaging import version
from PyQt5 import QtCore, QtWidgets, QtGui
@ -417,7 +418,7 @@ class Launcher(QtWidgets.QMainWindow):
installed_version = line.split()[2].decode()
break
if self.min_version <= installed_version:
if version.parse(self.min_version) <= version.parse(installed_version):
return True
return False