]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow calling package-update-all from the command line
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 13 May 2022 13:04:50 +0000 (15:04 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 13 May 2022 13:05:14 +0000 (15:05 +0200)
* lisp/emacs-lisp/package.el (package-update-all): Allow calling from
  the command line with -f package-update-all without any queries.

lisp/emacs-lisp/package.el

index 72b22a65566de0cf03eb3d39faf20d14820e7a36..6c77f6f150c1c18986b221b10b8642a3daa33761 100644 (file)
@@ -2171,6 +2171,7 @@ to install it but still mark it as selected."
     (if (not updateable)
         (message "No packages to update")
       (when (and (not inhibit-queries)
+                 (not noninteractive)
                  (not (yes-or-no-p
                        (if (length= updateable 1)
                            "One package to update.  Do it? "