diff options
author | Kristian Bendiksen <kristian.bendiksen@gmail.com> | 2020-05-24 12:24:06 +0200 |
---|---|---|
committer | Kristian Bendiksen <kristian.bendiksen@gmail.com> | 2020-05-24 12:24:06 +0200 |
commit | 06b5647b576a46069fa775c1c8952407111411ff (patch) | |
tree | 4828a11fd5634c12050af357366e45178458e369 | |
parent | 710a9c75c7fd714d2f9783ab515902f8ae72a19e (diff) |
Limit gnutls workaround to emacs version older than 2.6.3.
The referenced bug was fixed in 2.6.3, and the workaround introduces problems
on system with old gnutls (e.g. centos 7).
-rw-r--r-- | lisp/init-package.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/init-package.el b/lisp/init-package.el index e3b5748..a64d9e5 100644 --- a/lisp/init-package.el +++ b/lisp/init-package.el @@ -6,7 +6,8 @@ (package-initialize)) ;; workaround for https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34341 -(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") +(when (version< emacs-version "26.3") + (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")) (defun require-package (package &optional min-version no-refresh) "Install given PACKAGE, optionally requiring MIN-VERSION. |