[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master c8e5069e6d 24/42: Add new command 'package-vc-update-all'
From: |
Philip Kaludercic |
Subject: |
master c8e5069e6d 24/42: Add new command 'package-vc-update-all' |
Date: |
Thu, 17 Nov 2022 14:56:23 -0500 (EST) |
branch: master
commit c8e5069e6d2f9c443ab7b5184a0f42c8a8ad7127
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Add new command 'package-vc-update-all'
* lisp/emacs-lisp/package-vc.el (package-vc-update-all): Add command
(package-vc-update): Add an assertion to verify this.
---
lisp/emacs-lisp/package-vc.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index 36d17c6116..b93205e558 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -551,6 +551,15 @@ installed package."
(if installed package-alist package-archive-contents)
#'string=)))
+(defun package-vc-update-all ()
+ "Attempt to update all installed VC packages."
+ (interactive)
+ (dolist (package package-alist)
+ (dolist (pkg-desc (cdr package))
+ (when (package-vc-p pkg-desc)
+ (package-vc-update pkg-desc))))
+ (message "Done updating packages."))
+
(defun package-vc-update (pkg-desc)
"Attempt to update the package PKG-DESC."
(interactive (list (package-vc--read-package-desc "Update source package:")))
@@ -566,6 +575,7 @@ installed package."
;; `package-vc--unpack-1'. Ugh...
;;
;; If there is a better way to do this, it should be done.
+ (cl-assert (package-vc-p pkg-desc))
(letrec ((pkg-dir (package-desc-dir pkg-desc))
(empty (make-symbol "empty"))
(args (list empty empty empty empty))
- master 228c247e6f 34/42: Remove duplicate package descriptions after updating, (continued)
- master 228c247e6f 34/42: Remove duplicate package descriptions after updating, Philip Kaludercic, 2022/11/17
- master 4bd7ae833f 36/42: Allow the direct installation of package specifications, Philip Kaludercic, 2022/11/17
- master 53c90abfa8 37/42: ; * lisp/emacs-lisp/package-vc.el: Update TODO, Philip Kaludercic, 2022/11/17
- master aadf07f5b8 05/42: Autoload 'package-vc-install-selected-packages', Philip Kaludercic, 2022/11/17
- master 9f4a433b27 12/42: Fix generation of documentation for source packages, Philip Kaludercic, 2022/11/17
- master aa56e50fe2 23/42: Raise 'wrong-type-argument' when installing package nil, Philip Kaludercic, 2022/11/17
- master d0ea38b5fe 27/42: Have 'vc-prepare-patch' handle prefix arguments., Philip Kaludercic, 2022/11/17
- master 2ed115fc3c 21/42: Fix indefinite loading of asynchronous downloads, Philip Kaludercic, 2022/11/17
- master a6cd44734d 18/42: Remove unused variable in 'package-vc--unpack', Philip Kaludercic, 2022/11/17
- master fd4da9151f 28/42: * lisp/vc/vc.el (vc-default-last-change): Use 'vc-call', Philip Kaludercic, 2022/11/17
- master c8e5069e6d 24/42: Add new command 'package-vc-update-all',
Philip Kaludercic <=
- master 345bfd376e 31/42: Add missing elpa-package.eld to package test resources, Philip Kaludercic, 2022/11/17
- master 4aee4cde3a 26/42: Explain that 'package-vc-install' doesn't remove tarball packages, Philip Kaludercic, 2022/11/17
- master 11cb810356 32/42: Fix the behaviour of 'byte-compile-ignore-files', Philip Kaludercic, 2022/11/17
- master 874d8a418f 35/42: Only fetch elpa-packages.eld when necessary, Philip Kaludercic, 2022/11/17
- master 5b8f165f75 38/42: Fix issues related to 'package-vc-install-from-checkout', Philip Kaludercic, 2022/11/17
- master fb6d62f881 41/42: ; Clarify what a package specification is, Philip Kaludercic, 2022/11/17
- master 0b77909cac 39/42: Avoid duplicate source packages in 'package-alist', Philip Kaludercic, 2022/11/17
- master db28ba29dd 40/42: Ensure 'package-vc-prepare-patch' runs in the right directory, Philip Kaludercic, 2022/11/17
- master 17889dd828 42/42: * lisp/emacs-lisp/package-vc.el: Autoload package-vc-update{, -all}, Philip Kaludercic, 2022/11/17