[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/install-package-from-directory 93d710e 4/4: Add co
From: |
Artur Malabarba |
Subject: |
[Emacs-diffs] scratch/install-package-from-directory 93d710e 4/4: Add comment regarding the `dir' desc-kind |
Date: |
Wed, 14 Jan 2015 15:21:08 +0000 |
branch: scratch/install-package-from-directory
commit 93d710e045ac5877c3e8fe5aa217818f06623a3a
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>
Add comment regarding the `dir' desc-kind
---
lisp/emacs-lisp/package.el | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 27d6b9c..6f3cc97 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))