diff --git a/.dvc/.gitignore b/.dvc/.gitignore index b2b186a36..0e30536ff 100644 --- a/.dvc/.gitignore +++ b/.dvc/.gitignore @@ -3,4 +3,6 @@ link.state.lock lock config.local updater -cache \ No newline at end of file +cache +state +state.lock \ No newline at end of file diff --git a/dvc/updater.py b/dvc/updater.py index 87e653763..44f94ce8f 100644 --- a/dvc/updater.py +++ b/dvc/updater.py @@ -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 \