From a6710e64114d6801e42b57645e8aabc30ffcc85e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 6 Jul 2014 10:07:17 +0530 Subject: [PATCH] Idiotic windows requires product versions to be less than 256 --- src/calibre/constants.py | 2 +- src/calibre/gui2/update.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/constants.py b/src/calibre/constants.py index d25f7adc3d..76ad935cea 100644 --- a/src/calibre/constants.py +++ b/src/calibre/constants.py @@ -4,7 +4,7 @@ __license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net' __docformat__ = 'restructuredtext en' __appname__ = u'calibre' -numeric_version = (1, 900, 0) +numeric_version = (1, 200, 0) __version__ = u'.'.join(map(unicode, numeric_version)) __author__ = u"Kovid Goyal " diff --git a/src/calibre/gui2/update.py b/src/calibre/gui2/update.py index a878599515..fb13b70eb5 100644 --- a/src/calibre/gui2/update.py +++ b/src/calibre/gui2/update.py @@ -150,7 +150,7 @@ class UpdateMixin(object): def update_found(self, calibre_version, number_of_plugin_updates, force=False, no_show_popup=False): self.last_newest_calibre_version = calibre_version - is_beta = numeric_version[0] == 1 and numeric_version[1] >= 900 + is_beta = numeric_version[0] == 1 and numeric_version[1] >= 200 has_calibre_update = calibre_version != NO_CALIBRE_UPDATE and not is_beta has_plugin_updates = number_of_plugin_updates > 0 self.plugin_update_found(number_of_plugin_updates)