calibre/calibre-3.26.1-no-update.patch
2018-07-02 20:43:31 +03:00

24 lines
1.3 KiB
Diff

diff -ur calibre-3.26.1/src/calibre/gui2/update.py calibre-3.26.1_patched/src/calibre/gui2/update.py
--- calibre-3.26.1/src/calibre/gui2/update.py 2018-06-15 09:55:24.000000000 +0300
+++ calibre-3.26.1_patched/src/calibre/gui2/update.py 2018-07-02 20:34:46.018081386 +0300
@@ -81,20 +81,6 @@
while not self.shutdown_event.is_set():
calibre_update_version = NO_CALIBRE_UPDATE
plugins_update_found = 0
- try:
- version = get_newest_version()
- if version[:2] > numeric_version[:2]:
- calibre_update_version = version
- except Exception as e:
- prints('Failed to check for calibre update:', as_unicode(e))
- try:
- update_plugins = get_plugin_updates_available(raise_error=True)
- if update_plugins is not None:
- plugins_update_found = len(update_plugins)
- except Exception as e:
- prints('Failed to check for plugin update:', as_unicode(e))
- if calibre_update_version != NO_CALIBRE_UPDATE or plugins_update_found > 0:
- self.signal.update_found.emit(calibre_update_version, plugins_update_found)
self.shutdown_event.wait(self.INTERVAL)
def shutdown(self):