Smarter updating logic makes is_beta processing obsolete

This commit is contained in:
Kovid Goyal 2014-08-01 10:24:11 +05:30
parent 509638dc98
commit e9cf38ca52
2 changed files with 1 additions and 4 deletions

View file

@ -6,8 +6,6 @@
__license__ = 'GPL v3'
__copyright__ = '2014, Kovid Goyal <kovid at kovidgoyal.net>'
# QT5XX: Get rid of is_beta special processing in update.py
# QT5XX: Get rid of the plugin porting stat collection in plugins_mirror.py
# QT5XX: Port the demo UI and editor plugin zip files on the server to Qt 5

View file

@ -150,8 +150,7 @@ def recalc_update_label(self, number_of_plugin_updates):
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] >= 200
has_calibre_update = calibre_version != NO_CALIBRE_UPDATE and not is_beta
has_calibre_update = calibre_version != NO_CALIBRE_UPDATE
has_plugin_updates = number_of_plugin_updates > 0
self.plugin_update_found(number_of_plugin_updates)
version_url = binascii.hexlify(cPickle.dumps((calibre_version, number_of_plugin_updates), -1))