GNU bug report logs - #80015
[PATCH] Prioritize user provided pkg-spec over the ones in archives

Previous Next

Package: emacs;

Reported by: Aritro Sen <1.sen.aritro <at> gmail.com>

Date: Mon, 15 Dec 2025 20:25:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 80015 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#80015; Package emacs. (Mon, 15 Dec 2025 20:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Aritro Sen <1.sen.aritro <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 15 Dec 2025 20:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Aritro Sen <1.sen.aritro <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Prioritize user provided pkg-spec over the ones in archives
Date: Tue, 16 Dec 2025 01:54:41 +0530
[Message part 1 (text/plain, inline)]
When installing a package via a VC, while unpacking package in the
function package-vc--unpack, prioritize the pkg-spec argument over the
pkg-spec for the package from the archives. We used to do that, but in
commit 573acd97e54ceead6d11b330909ffb8e744247cc this change was made:

-    (unless (seq-some (lambda (alist) (equal (alist-get name (cdr 
alist)) pkg-spec))
-                      package-vc--archive-spec-alists)
+    (when (null (package-vc--desc->spec pkg-desc name))

This patch restores the previous behavior by comparing with pkg-spec
instead of checking whether package-vc--desc->spec function returns null
or not.
[0001-compare-pkg-spec.patch (text/x-patch, attachment)]

This bug report was last modified 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.