summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-14 13:20:07 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-14 13:20:07 -0200
commit93d710e045ac5877c3e8fe5aa217818f06623a3a (patch)
tree469b481c203a15d08ddfcbeaf5c0bda5643810ea
parent44d3f7dd079c150d2b484cf804f86ea6cc00f524 (diff)
downloademacs-scratch/install-package-from-directory.tar.gz
Add comment regarding the `dir' desc-kindscratch/install-package-from-directory
-rw-r--r--lisp/emacs-lisp/package.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 27d6b9ce738..6f3cc9794b4 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1324,6 +1324,10 @@ Downloads and installs required packages as needed."
(let ((pkg-desc
(cond
((derived-mode-p 'dired-mode)
+ ;; This is the only way a package-desc object with a `dir'
+ ;; desc-kind can be created. Such packages can't be
+ ;; uploaded or installed from archives, they can only be
+ ;; installed from local buffers or directories.
(package-dir-info))
((derived-mode-p 'tar-mode)
(package-tar-file-info))