mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
updater: don't forget to convert to int
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
+3
-1
@@ -3,4 +3,6 @@ link.state.lock
|
||||
lock
|
||||
config.local
|
||||
updater
|
||||
cache
|
||||
cache
|
||||
state
|
||||
state.lock
|
||||
+2
-2
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user