[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 832b013ef0 2/2: Insert news for installed packages only
From: |
Philip Kaludercic |
Subject: |
emacs-29 832b013ef0 2/2: Insert news for installed packages only |
Date: |
Wed, 30 Nov 2022 14:27:57 -0500 (EST) |
branch: emacs-29
commit 832b013ef041b13a55f9ccf6e1eca617f605753c
Author: muffinmad <andreyk.mad@gmail.com>
Commit: Philip Kaludercic <philipk@posteo.net>
Insert news for installed packages only
* lisp/emacs-lisp/package.el (describe-package-1): Check package is
installed and "news" is a regular file. (Bug#59684)
---
lisp/emacs-lisp/package.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 8e7c34da38..f10dc91572 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -2696,7 +2696,10 @@ Helper function for `describe-package'."
(signed (if desc (package-desc-signed desc)))
(maintainer (cdr (assoc :maintainer extras)))
(authors (cdr (assoc :authors extras)))
- (news (and-let* ((file (expand-file-name "news" pkg-dir))
+ (news (and-let* (pkg-dir
+ ((not built-in))
+ (file (expand-file-name "news" pkg-dir))
+ ((file-regular-p file))
((file-readable-p file)))
file)))
(when (string= status "avail-obso")