mirror of
https://github.com/torproject/torbrowser-launcher.git
synced 2024-11-23 09:29:42 +00:00
Switch to a version comparison library so that "10" is not less than "9"
This commit is contained in:
parent
12ac68ecd8
commit
7fc81ca92f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user