calibre-no-update.patch 1.3 KB

12345678910111213141516171819202122232425
  1. diff -Nur calibre-2.9.0.orig/src/calibre/gui2/update.py calibre-2.9.0/src/calibre/gui2/update.py
  2. --- calibre-2.9.0.orig/src/calibre/gui2/update.py 2014-11-08 21:43:22.888681538 -0700
  3. +++ calibre-2.9.0/src/calibre/gui2/update.py 2014-11-08 21:45:27.363383815 -0700
  4. @@ -63,20 +63,6 @@
  5. while not self.shutdown_event.is_set():
  6. calibre_update_version = NO_CALIBRE_UPDATE
  7. plugins_update_found = 0
  8. - try:
  9. - version = get_newest_version()
  10. - if version[:2] > numeric_version[:2]:
  11. - calibre_update_version = version
  12. - except Exception as e:
  13. - prints('Failed to check for calibre update:', as_unicode(e))
  14. - try:
  15. - update_plugins = get_plugin_updates_available(raise_error=True)
  16. - if update_plugins is not None:
  17. - plugins_update_found = len(update_plugins)
  18. - except Exception as e:
  19. - prints('Failed to check for plugin update:', as_unicode(e))
  20. - if calibre_update_version != NO_CALIBRE_UPDATE or plugins_update_found > 0:
  21. - self.signal.update_found.emit(calibre_update_version, plugins_update_found)
  22. self.shutdown_event.wait(self.INTERVAL)
  23. def shutdown(self):