Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Fix version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Smith committed Jun 27, 2022
1 parent 1419c7e commit b21ed61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bcml/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from multiprocessing import Pool
from operator import itemgetter
from pathlib import Path
from packaging.version import Version
from platform import system
from subprocess import run, PIPE, Popen
from shutil import copytree, rmtree, copyfile
Expand Down Expand Up @@ -64,11 +65,11 @@ def __init__(self, host: str):
self.tmp_files = []

def get_ver(self, params=None):
updated = util.get_settings("last_version") < VERSION
updated = Version(util.get_settings("last_version")) < Version(VERSION)
res = {
"version": VERSION,
"update": (
util.get_latest_bcml() > VERSION
Version(util.get_latest_bcml()) > Version(VERSION)
and not util.get_settings("suppress_update")
),
"showChangelog": updated and util.get_settings("changelog"),
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ byml~=2.4.2
botw-utils~=0.2.3
botw-havok~=0.3.18
oead~=1.2.0
packaging~=21.3
pycrosskit~=1.0.4.1
pythonnet~=2.5.2; platform_system == 'Windows' and python_version < "3.9"
pythonnet~=3.0.0a2; platform_system == 'Windows' and python_version >= "3.9"
Expand Down

0 comments on commit b21ed61

Please sign in to comment.