Idiotic windows requires product versions to be less than 256

This commit is contained in:
Kovid Goyal 2014-07-06 10:07:17 +05:30
parent 53c9d67133
commit a6710e6411
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ __license__ = 'GPL v3'
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net' __copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
__docformat__ = 'restructuredtext en' __docformat__ = 'restructuredtext en'
__appname__ = u'calibre' __appname__ = u'calibre'
numeric_version = (1, 900, 0) numeric_version = (1, 200, 0)
__version__ = u'.'.join(map(unicode, numeric_version)) __version__ = u'.'.join(map(unicode, numeric_version))
__author__ = u"Kovid Goyal <kovid@kovidgoyal.net>" __author__ = u"Kovid Goyal <kovid@kovidgoyal.net>"

View File

@ -150,7 +150,7 @@ class UpdateMixin(object):
def update_found(self, calibre_version, number_of_plugin_updates, force=False, no_show_popup=False): def update_found(self, calibre_version, number_of_plugin_updates, force=False, no_show_popup=False):
self.last_newest_calibre_version = calibre_version 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_calibre_update = calibre_version != NO_CALIBRE_UPDATE and not is_beta
has_plugin_updates = number_of_plugin_updates > 0 has_plugin_updates = number_of_plugin_updates > 0
self.plugin_update_found(number_of_plugin_updates) self.plugin_update_found(number_of_plugin_updates)