guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/06: gnu: anki: Don't phone home for updates.


From: guix-commits
Subject: 06/06: gnu: anki: Don't phone home for updates.
Date: Tue, 28 Jul 2020 15:26:10 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit a81a64492fbf0ab25b87205850c9f0cd13e6b656
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Tue Jul 28 21:23:34 2020 +0200

    gnu: anki: Don't phone home for updates.
    
    * gnu/packages/education.scm (anki)[arguments]: Add a
    ‘disable-update-check’ phase.
---
 gnu/packages/education.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/education.scm b/gnu/packages/education.scm
index 99e7b66..a4081cc 100644
--- a/gnu/packages/education.scm
+++ b/gnu/packages/education.scm
@@ -758,6 +758,13 @@ adjust the level of difficulty.")
                   (ice-9 match))
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'disable-update-check
+           ;; Don't ‘phone home’ unasked to check for updates.
+           (lambda _
+             (substitute* "aqt/update.py"
+               (("requests\\.post")
+                "throw.an.exception.instead"))
+             #t))
          (delete 'configure)            ;no configure script
          (add-after 'install 'wrap
            (lambda* (#:key inputs outputs #:allow-other-keys)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]