From: Philip Kaludercic Date: Wed, 11 Jan 2023 08:21:57 +0000 (+0100) Subject: Handle missing package description when unpacking vc packages X-Git-Tag: emacs-29.0.90~764 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=70947da708c8e06e31a2930520b38bafe43dba39;p=emacs.git 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. --- 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))