updater: don't forget to convert to int

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-07-06 05:30:14 +03:00
parent d5c015ff63
commit 715cc717aa
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -3,4 +3,6 @@ link.state.lock
lock
config.local
updater
cache
cache
state
state.lock
+2 -2
View File
@@ -42,8 +42,8 @@ class Updater(object):
Logger.debug('Failed to obtain latest version: {}'.format(str(exc)))
return
l_major, l_minor, l_patch = latest.split('.')
c_major, c_minor, c_patch = current.split('.')
l_major, l_minor, l_patch = [int(x) for x in latest.split('.')]
c_major, c_minor, c_patch = [int(x) for x in current.split('.')]
if l_major <= c_major and \
l_minor <= c_minor and \