anki: disable version check

This commit is contained in:
Robert Helgesson 2016-01-05 21:42:31 +01:00
parent 108cd9aa7f
commit ec2a1bcb86
2 changed files with 16 additions and 0 deletions

View file

@ -26,6 +26,9 @@ stdenv.mkDerivation rec {
phases = [ "unpackPhase" "patchPhase" "installPhase" ];
patches = [
# Disable updated version check.
./no-version-check.patch
(substituteAll {
src = ./fix-paths.patch;
inherit lame mplayer qt4;

View file

@ -0,0 +1,13 @@
diff -Nurp anki-2.0.33.orig/aqt/main.py anki-2.0.33/aqt/main.py
--- anki-2.0.33.orig/aqt/main.py 2016-01-05 21:37:53.904533750 +0100
+++ anki-2.0.33/aqt/main.py 2016-01-05 21:39:11.469175976 +0100
@@ -820,6 +820,9 @@ title="%s">%s</button>''' % (
##########################################################################
def setupAutoUpdate(self):
+ # Don't check for latest version since the versions are
+ # managed in Nixpkgs.
+ return
import aqt.update
self.autoUpdate = aqt.update.LatestVersionFinder(self)
self.connect(self.autoUpdate, SIGNAL("newVerAvail"), self.newVerAvail)