emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 70947da708 1/2: Handle missing package description when unpacki


From: Philip Kaludercic
Subject: emacs-29 70947da708 1/2: Handle missing package description when unpacking vc packages
Date: Wed, 11 Jan 2023 03:29:01 -0500 (EST)

branch: emacs-29
commit 70947da708c8e06e31a2930520b38bafe43dba39
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Handle missing package description when unpacking vc packages
    
    * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Create a dummy
    descriptor if PKG-DESC is nil.
---
 lisp/emacs-lisp/package-vc.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index ddcfe57928..ba1a01faee 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -600,6 +600,8 @@ PKG-SPEC is a package specification, a property list 
describing
 how to fetch and build the package.  See `package-vc--archive-spec-alist'
 for details.  The optional argument REV specifies a specific revision to
 checkout.  This overrides the `:branch' attribute in PKG-SPEC."
+  (unless pkg-desc
+    (package-desc-create :name (car pkg-spec) :kind 'vc))
   (pcase-let* (((map :lisp-dir) pkg-spec)
                (name (package-desc-name pkg-desc))
                (dirname (package-desc-full-name pkg-desc))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]