From fd4a0c022b7406b9d2a947937600e34e5cccb9bf Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 27 May 2022 12:17:28 +0200 Subject: [PATCH] Make package-update-all also refresh the list * lisp/emacs-lisp/package.el (package-update-all): Also refresh package list. --- lisp/emacs-lisp/package.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index f4872a1a52f..b340848a6f9 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -2168,10 +2168,11 @@ to install it but still mark it as selected." ;;;###autoload (defun package-update-all (&optional query) - "Upgrade all packages. + "Refresh package list and upgrade all packages. If QUERY, ask the user before updating packages. When called interactively, QUERY is always true." (interactive (list (not noninteractive))) + (package-refresh-contents) (let ((updateable (package--updateable-packages))) (if (not updateable) (message "No packages to update") -- 2.39.2