[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 6f6d525: Detect a non-list package archive conten
From: |
Noam Postavsky |
Subject: |
[Emacs-diffs] emacs-26 6f6d525: Detect a non-list package archive content properly (Bug#22311) |
Date: |
Tue, 26 Jun 2018 19:56:58 -0400 (EDT) |
branch: emacs-26
commit 6f6d525683d5731d55fcd801a66b078bd6ba8369
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>
Detect a non-list package archive content properly (Bug#22311)
* lisp/emacs-lisp/package.el (package--download-one-archive): Use
`read' instead of `read-from-string'; the latter always returns a
cons, so the `listp' check on its return value doesn't make sense. It
was changed from `read' to `read-from-string' in 2015-04-01 "*
emacs-lisp/package.el: Implement asynchronous refreshing", but that
change was not needed because `read' works fine on strings as well as
buffers.
---
lisp/emacs-lisp/package.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index c565022..576a9bc 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1532,7 +1532,7 @@ similar to an entry in `package-alist'. Save the cached
copy to
(content (buffer-string))
(dir (expand-file-name (format "archives/%s" name)
package-user-dir))
(local-file (expand-file-name file dir)))
- (when (listp (read-from-string content))
+ (when (listp (read content))
(make-directory dir t)
(if (or (not package-check-signature)
(member name package-unsigned-archives))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 6f6d525: Detect a non-list package archive content properly (Bug#22311),
Noam Postavsky <=