diff --git a/pubs/pubs_cmd.py b/pubs/pubs_cmd.py index 3a9ff8b..b254682 100644 --- a/pubs/pubs_cmd.py +++ b/pubs/pubs_cmd.py @@ -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(