git.iko.soy/typeable/nixpkgs
on master help sign in
calibre: disable version check

Applies patch from Debian to disable version checking by default.

commit108cd9aa7f5a9ffbc2d0d95371e07d29d9baa10f authorRobert Helgesson <robert@rycee.net> dateTue 5 Jan 2016, 21:35 (11 years ago) parente5972f3
2 files changed+21−1
pkgs/applications/misc/calibre/default.nix+5−1 pkgs/applications/misc/calibre/no_updates_dialog.patch+16
pkgs/applications/misc/calibre/default.nix+5−1
@@ -15,7 +15,11 @@ stdenv.mkDerivation rec {
1515
1616 inherit python;
1717
18− patches = stdenv.lib.optional (!unrarSupport) ./dont_build_unrar_plugin.patch;
18+ patches = [
19+ # Patch from Debian that switches the version update change from
20+ # enabled by default to disabled by default.
21+ ./no_updates_dialog.patch
22+ ] ++ stdenv.lib.optional (!unrarSupport) ./dont_build_unrar_plugin.patch;
1923
2024 prePatch = ''
2125 sed -i "/pyqt_sip_dir/ s:=.*:= '${pyqt5}/share/sip':" \
pkgs/applications/misc/calibre/no_updates_dialog.patchnew file+16
@@ -0,0 +1,16 @@
1+# Description: Disable update check by default.
2+Index: calibre/src/calibre/gui2/main.py
3+===================================================================
4+--- calibre.orig/src/calibre/gui2/main.py 2014-02-02 10:41:28.470954623 +0100
5++++ calibre/src/calibre/gui2/main.py 2014-02-02 10:41:56.546954247 +0100
6+@@ -37,8 +37,8 @@
7+ help=_('Start minimized to system tray.'))
8+ parser.add_option('-v', '--verbose', default=0, action='count',
9+ help=_('Ignored, do not use. Present only for legacy reasons'))
10+- parser.add_option('--no-update-check', default=False, action='store_true',
11+- help=_('Do not check for updates'))
12++ parser.add_option('--update-check', dest='no_update_check', default=True, action='store_false',
13++ help=_('Check for updates'))
14+ parser.add_option('--ignore-plugins', default=False, action='store_true',
15+ help=_('Ignore custom plugins, useful if you installed a plugin'
16+ ' that is preventing calibre from starting'))