From 8386052858797203cb95bbdcf5ebd97d7b0f5681 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 18 Aug 2019 17:11:21 -0700 Subject: [PATCH] =?UTF-8?q?Work=20around=20the=20=E2=80=9CBad=20Request?= =?UTF-8?q?=E2=80=9D=20error=20with=20elpa.gnu.org?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oni-package.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/oni-package.el b/oni-package.el index f47147a..6c104b4 100644 --- a/oni-package.el +++ b/oni-package.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190622162418 +;; Version: 20190818171115 ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -33,6 +33,7 @@ ;;; Code: +(require 'gnutls) (require 'package) (require 'package-x) @@ -67,6 +68,10 @@ (setq package-archive-upload-base "bin/") +;;; To fix "Bad Request" errors when downoading from elpa.gnu.org. This turns +;;; off TLS1.3 it seems to me. +(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") + ;;; Temporary fix for `package-maint-add-news-item', until I get my ;;; Copyright assignment back in order. (defun package-maint-add-news-item (title description archive-url)