[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/package-vc-fixes 42b01caac1 39/48: Avoid updating non-source pac
From: |
Philip Kaludercic |
Subject: |
scratch/package-vc-fixes 42b01caac1 39/48: Avoid updating non-source packages in 'package-vc-update-all' |
Date: |
Wed, 16 Nov 2022 04:50:08 -0500 (EST) |
branch: scratch/package-vc-fixes
commit 42b01caac131ad9cbb4e1f345e996c87a0732013
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Avoid updating non-source packages in 'package-vc-update-all'
* lisp/emacs-lisp/package-vc.el (package-vc-update-all): Check if a
package is a source package.
(package-vc-update): Add an assertion to verify this.
---
lisp/emacs-lisp/package-vc.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index 41eae81491..5c322ac7b4 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -540,7 +540,8 @@ installed package."
(interactive)
(dolist (package package-alist)
(dolist (pkg-desc (cdr package))
- (package-vc-update pkg-desc))))
+ (when (package-vc-p pkg-desc)
+ (package-vc-update pkg-desc)))))
(defun package-vc-update (pkg-desc)
"Attempt to update the package PKG-DESC."
@@ -557,6 +558,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))
(vc-flags)
(vc-filter-command-function
- scratch/package-vc-fixes aeb386007b 04/48: Mark 'package-vc-install-selected-packages' as interactive, (continued)
- scratch/package-vc-fixes aeb386007b 04/48: Mark 'package-vc-install-selected-packages' as interactive, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 32310b69ab 01/48: ; Fix interactive spec for 'package-vc-refresh', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes bea359d186 05/48: Autoload 'package-vc-install-selected-packages', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes d051b24c3c 09/48: Clarify 'package-vc--build-documentation' docstring, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 7e15f35bac 19/48: Avoid using 'package-lisp-dir' in 'package-generate-autoloads', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 315a61bbc7 18/48: Remove unused variable in 'package-vc--unpack', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes ff90ad5277 24/48: Fix indefinite loading of asynchronous downloads, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 92730e0a5e 25/48: Clarify 'package-vc-selected-packages' docstring, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 4b47dc81d6 37/48: Add missing elpa-package.eld to package test resources, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 9ca8236a03 33/48: * lisp/vc/vc.el (vc-default-last-change): Use 'vc-call', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 42b01caac1 39/48: Avoid updating non-source packages in 'package-vc-update-all',
Philip Kaludercic <=
- scratch/package-vc-fixes bef3acf0f0 31/48: Explain that 'package-vc-install' doesn't remove tarball packages, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 58e2e8cced 44/48: ; * lisp/emacs-lisp/package-vc.el: Update TODO, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 2e007c62f3 14/48: Track 'default-directory' while updating source packages, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 3046447102 22/48: ; Assert that 'package-lisp-dir' is used with real packages, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 78830856bc 28/48: Rename 'package-vc-refresh' to 'package-vc-rebuild', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 2024a01fdc 30/48: Mention package name when package is lacking VC data, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 6080b169f3 47/48: Avoid duplicate source packages in 'package-alist', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 9bbfdbba24 06/48: Mark 'package-vc-update' as interactive, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes e8043ebc57 03/48: Rename '-ensure-packages' to -install-selected-packages', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 155c3673d7 13/48: Allow specifying a :lisp-dir for package descriptions, Philip Kaludercic, 2022/11/16