* bug#73781: [PATCH] Upgrade out-of-date dependencies with package-vc
@ 2024-10-12 23:23 Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-02 2:14 ` Stefan Kangas
0 siblings, 1 reply; 2+ messages in thread
From: Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-10-12 23:23 UTC (permalink / raw)
To: 73781
[-- Attachment #1: Type: text/plain, Size: 653 bytes --]
Tags: patch
I noticed this bug when working on hyperdrive.el, which I had installed
with package-vc-install-from-checkout. I updated the version of its
transient.el dependency in the Package-Requires header and attempted to
reinstall, but it did not attempt to update the dependency.
I think the attached patch may not be the whole solution. I applied it,
attempted package-vc-install-from-checkout again, and got this error:
package--with-response-buffer-1: https://melpa.org/packages/transient-20241004.1739.tar: Not found
Do we need to call package-refresh-contents at some point inside of
package-vc-install-dependencies?
Thank you!
Joseph
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Upgrade-out-of-date-dependencies.patch --]
[-- Type: text/patch, Size: 1121 bytes --]
From fd05beab4903e3ba9f2a6866a00e924f8bcd5637 Mon Sep 17 00:00:00 2001
From: Joseph Turner <joseph@breatheoutbreathe.in>
Date: Sun, 13 Oct 2024 01:10:02 +0200
Subject: [PATCH] Upgrade out-of-date dependencies
* lisp/emacs-lisp/package-vc.el (package-vc-install-dependencies): Pass
the specified package version when checking if a package is installed.
---
lisp/emacs-lisp/package-vc.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index e168096e153..58916637008 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -465,7 +465,7 @@ package-vc-install-dependencies
"Attempt to find all dependencies for PKG."
(cond
((assq (car pkg) to-install)) ;inhibit cycles
- ((package-installed-p (car pkg)))
+ ((package-installed-p (car pkg) (cadr pkg)))
((let* ((pac package-archive-contents)
(desc (cadr (assoc (car pkg) pac))))
(if desc
--
2.46.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#73781: [PATCH] Upgrade out-of-date dependencies with package-vc
2024-10-12 23:23 bug#73781: [PATCH] Upgrade out-of-date dependencies with package-vc Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2025-01-02 2:14 ` Stefan Kangas
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Kangas @ 2025-01-02 2:14 UTC (permalink / raw)
To: Joseph Turner; +Cc: Philip Kaludercic, 73781
Joseph Turner <joseph@breatheoutbreathe.in> writes:
> Tags: patch
>
> I noticed this bug when working on hyperdrive.el, which I had installed
> with package-vc-install-from-checkout. I updated the version of its
> transient.el dependency in the Package-Requires header and attempted to
> reinstall, but it did not attempt to update the dependency.
>
> I think the attached patch may not be the whole solution. I applied it,
> attempted package-vc-install-from-checkout again, and got this error:
>
> package--with-response-buffer-1: https://melpa.org/packages/transient-20241004.1739.tar: Not found
>
> Do we need to call package-refresh-contents at some point inside of
> package-vc-install-dependencies?
>
> Thank you!
>
> Joseph
Philip, any comments?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-02 2:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-12 23:23 bug#73781: [PATCH] Upgrade out-of-date dependencies with package-vc Joseph Turner via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-02 2:14 ` Stefan Kangas
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.