summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorPhilip Kaludercic <philipk@posteo.net>2023-01-11 09:21:57 +0100
committerPhilip Kaludercic <philipk@posteo.net>2023-01-11 09:28:40 +0100
commit70947da708c8e06e31a2930520b38bafe43dba39 (patch)
treee4bc0188f790fce8becfeebd575bff5c54cf350d /lisp/emacs-lisp
parent1cbc22b9c7f836f5b3311213dca8afa853513442 (diff)
downloademacs-70947da708c8e06e31a2930520b38bafe43dba39.tar.gz
emacs-70947da708c8e06e31a2930520b38bafe43dba39.tar.bz2
emacs-70947da708c8e06e31a2930520b38bafe43dba39.zip
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.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/package-vc.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index ddcfe57928b..ba1a01faeee 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))