Fix check for package-unsigned-archives during retrieval

* lisp/emacs-lisp/package.el (package--download-one-archive):
Fix check for package-unsigned-archives.
This commit is contained in:
Andy Moreton 2017-06-06 01:01:55 +03:00 committed by Dmitry Gutov
parent 096eb7d671
commit f858c585a3

View file

@ -1529,7 +1529,7 @@ similar to an entry in `package-alist'. Save the cached copy to
(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)