diff options
author | Larry Hajali <larryhaja@gmail.com> | 2017-02-27 08:46:28 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-03-04 07:26:27 +0700 |
commit | 2a74a70cc363fa40c509b2f891a54c988fd0c780 (patch) | |
tree | 5a0de0108acdcfe1ece99e6a5037cd7d77a7e147 /office/calibre/patches | |
parent | 8205852a67808501eb704cf461d544b620fc4d52 (diff) |
office/calibre: Updated for version 2.80.0
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
Diffstat (limited to 'office/calibre/patches')
-rw-r--r-- | office/calibre/patches/calibre-no-update.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/office/calibre/patches/calibre-no-update.patch b/office/calibre/patches/calibre-no-update.patch new file mode 100644 index 0000000000000..99b9f7c09983f --- /dev/null +++ b/office/calibre/patches/calibre-no-update.patch @@ -0,0 +1,24 @@ +diff -Nur calibre-2.9.0.orig/src/calibre/gui2/update.py calibre-2.9.0/src/calibre/gui2/update.py +--- calibre-2.9.0.orig/src/calibre/gui2/update.py 2014-11-08 21:43:22.888681538 -0700 ++++ calibre-2.9.0/src/calibre/gui2/update.py 2014-11-08 21:45:27.363383815 -0700 +@@ -63,20 +63,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): |