]> git.eshelyaron.com Git - emacs.git/commitdiff
; Partial revert of f3e7820b
authorPhilip Kaludercic <philipk@posteo.net>
Mon, 19 Dec 2022 16:00:36 +0000 (17:00 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Sun, 25 Dec 2022 08:36:01 +0000 (09:36 +0100)
* lisp/emacs-lisp/package.el (package-install-from-archive): Check if
a package is a directory package, not a VC package

lisp/emacs-lisp/package.el

index 4d33311cb746a266cbf193591fe219eb5a1a9e38..73c4f896a49306591aeed95c0df55fda69c58c83 100644 (file)
@@ -2094,7 +2094,7 @@ if all the in-between dependencies are also in PACKAGE-LIST."
 (defun package-install-from-archive (pkg-desc)
   "Download and install a package defined by PKG-DESC."
   ;; This won't happen, unless the archive is doing something wrong.
-  (when (package-vc-p pkg-desc)
+  (when (eq (package-desc-kind pkg-desc) 'dir)
     (error "Can't install directory package from archive"))
   (let* ((location (package-archive-base pkg-desc))
          (file (concat (package-desc-full-name pkg-desc)