[Top][All Lists]

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

bug in handling of package-unsigned-archives

From: Andy Moreton
Subject: bug in handling of package-unsigned-archives
Date: Mon, 20 Feb 2017 15:50:34 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (windows-nt)

Consider the following package archive setup:

(setq package-archives '(("melpa" . "https://melpa.org/packages/";)
                         ("gnu"   . "https://elpa.gnu.org/packages/";)))
(setq package-check-signature   t)
(setq package-unsigned-archives '("melpa"))

Using "M-x list-packages" results in an error being reported: "Unsigned
file ‘archive-contents’ at https://melpa.org/packages/";. This is caused
by an incorrect check in package.el - the following patch fixes it.

2017-02-20  Andy Moreton  <address@hidden>

        Fix check for package-unsigned-archives during retrieval.

        * lisp/emacs-lisp/package.el (package--download-one-archive):
          Fix check for package-unsigned-archives.

diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 6728f1b..13b8051 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1522,7 +1522,7 @@ package--download-one-archive
       (when (listp (read-from-string content))
         (make-directory dir t)
         (if (or (not package-check-signature)
-                (member archive package-unsigned-archives))
+                (member name package-unsigned-archives))
             ;; If we don't care about the signature, save the file and
             ;; we're done.
             (progn (write-region content nil local-file nil 'silent)

reply via email to

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