mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-30 23:00:21 -04:00
Smarter updating logic makes is_beta processing obsolete
This commit is contained in:
parent
509638dc98
commit
e9cf38ca52
@ -6,8 +6,6 @@ from __future__ import (unicode_literals, division, absolute_import,
|
||||
__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
|
||||
|
@ -150,8 +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] >= 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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user