Skip to content

Commit

Permalink
Merge pull request iterative#864 from efiop/master
Browse files Browse the repository at this point in the history
updater: don't forget to convert to int
  • Loading branch information
efiop authored Jul 6, 2018
2 parents d5c015f + 715cc71 commit 62cd68a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .dvc/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ link.state.lock
lock
config.local
updater
cache
cache
state
state.lock
4 changes: 2 additions & 2 deletions dvc/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def check(self):
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 \
Expand Down

0 comments on commit 62cd68a

Please sign in to comment.