calibre: disable version check

Applies patch from Debian to disable version checking by default.
wip/yesman
Robert Helgesson 9 years ago
parent e5972f3094
commit 108cd9aa7f
  1. 6
      pkgs/applications/misc/calibre/default.nix
  2. 16
      pkgs/applications/misc/calibre/no_updates_dialog.patch

@ -15,7 +15,11 @@ stdenv.mkDerivation rec {
inherit python;
patches = stdenv.lib.optional (!unrarSupport) ./dont_build_unrar_plugin.patch;
patches = [
# Patch from Debian that switches the version update change from
# enabled by default to disabled by default.
./no_updates_dialog.patch
] ++ stdenv.lib.optional (!unrarSupport) ./dont_build_unrar_plugin.patch;
prePatch = ''
sed -i "/pyqt_sip_dir/ s:=.*:= '${pyqt5}/share/sip':" \

@ -0,0 +1,16 @@
# Description: Disable update check by default.
Index: calibre/src/calibre/gui2/main.py
===================================================================
--- calibre.orig/src/calibre/gui2/main.py 2014-02-02 10:41:28.470954623 +0100
+++ calibre/src/calibre/gui2/main.py 2014-02-02 10:41:56.546954247 +0100
@@ -37,8 +37,8 @@
help=_('Start minimized to system tray.'))
parser.add_option('-v', '--verbose', default=0, action='count',
help=_('Ignored, do not use. Present only for legacy reasons'))
- parser.add_option('--no-update-check', default=False, action='store_true',
- help=_('Do not check for updates'))
+ parser.add_option('--update-check', dest='no_update_check', default=True, action='store_false',
+ help=_('Check for updates'))
parser.add_option('--ignore-plugins', default=False, action='store_true',
help=_('Ignore custom plugins, useful if you installed a plugin'
' that is preventing calibre from starting'))
Loading…
Cancel
Save