Fix obsolete repo version

This fix is temporary. A better long-term solution should be found, and a less
intrusive update strategy devised.
This commit is contained in:
Fabien Benureau 2015-12-03 09:47:38 +01:00
parent b2dac68856
commit 29c6eaa8b5

View File

@ -33,8 +33,8 @@ CORE_CMDS = collections.OrderedDict([
def _update_check(config, ui):
if config.version_warning:
code_version = int(__version__)
repo_version = int(config.version)
code_version = __version__.split('.')
repo_version = ('0.{}.0'.format(config.version)).split('.') # FIXME
if repo_version > code_version:
ui.warning(