[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 0b60259 163/187: Check if package-archive-contents is popu
From: |
Michael Albinus |
Subject: |
[elpa] master 0b60259 163/187: Check if package-archive-contents is populated (#51). |
Date: |
Wed, 30 Dec 2015 11:50:23 +0000 |
branch: master
commit 0b60259ca8e7553c7029bb3471a1d29c3893200e
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
Check if package-archive-contents is populated (#51).
* async-bytecomp.el (async-bytecomp--get-package-deps): Add comment.
(async-bytecomp-get-allowed-pkgs): Don't enter loop when
package-archive-contents is nil.
---
async-bytecomp.el | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/async-bytecomp.el b/async-bytecomp.el
index e680df0..0daa079 100644
--- a/async-bytecomp.el
+++ b/async-bytecomp.el
@@ -109,6 +109,8 @@ All *.elc files are systematically deleted before
proceeding."
(declare-function package-desc-reqs "package.el" (cl-x))
(defun async-bytecomp--get-package-deps (pkg &optional only)
+ ;; Same as `package--get-deps' but parse instead `package-archive-contents'
+ ;; because PKG is not already installed and not present in `package-alist'.
(let* ((pkg-desc (cadr (assq pkg package-archive-contents)))
(direct-deps (cl-loop for p in (package-desc-reqs pkg-desc)
for name = (car p)
@@ -127,11 +129,13 @@ All *.elc files are systematically deleted before
proceeding."
(defun async-bytecomp-get-allowed-pkgs ()
(when (and async-bytecomp-allowed-packages
(listp async-bytecomp-allowed-packages))
- (cl-loop for p in async-bytecomp-allowed-packages
- append (async-bytecomp--get-package-deps p) into reqs
- finally return
- (delete-dups
- (append async-bytecomp-allowed-packages reqs)))))
+ (if package-archive-contents
+ (cl-loop for p in async-bytecomp-allowed-packages
+ append (async-bytecomp--get-package-deps p) into reqs
+ finally return
+ (delete-dups
+ (append async-bytecomp-allowed-packages reqs)))
+ async-bytecomp-allowed-packages)))
(defadvice package--compile (around byte-compile-async)
(let ((cur-package (package-desc-name pkg-desc)))
- [elpa] master 4ab15f7 161/187: Merge pull request #50 from tarsius/master, (continued)
- [elpa] master 4ab15f7 161/187: Merge pull request #50 from tarsius/master, Michael Albinus, 2015/12/30
- [elpa] master a97aa4c 166/187: Don't call package-activate-1 in package--compile., Michael Albinus, 2015/12/30
- [elpa] master 7616e0c 165/187: Check if pkg is member of package-archive-contents (#51)., Michael Albinus, 2015/12/30
- [elpa] master ee727e1 168/187: Add async to load-path when recompiling itself., Michael Albinus, 2015/12/30
- [elpa] master 40814ea 173/187: Correct package headers, Michael Albinus, 2015/12/30
- [elpa] master 3499a32 176/187: Only rename buffers on rename operation (#56)., Michael Albinus, 2015/12/30
- [elpa] master d98799c 172/187: Add epg to inject variables in smtpmail (#54)., Michael Albinus, 2015/12/30
- [elpa] master 062c609 158/187: Add more helm packages to compile async., Michael Albinus, 2015/12/30
- [elpa] master cbd8d9a 164/187: Update version number., Michael Albinus, 2015/12/30
- [elpa] master 8c0cc0f 160/187: Add magit to async-bytecomp-allowed-package., Michael Albinus, 2015/12/30
- [elpa] master 0b60259 163/187: Check if package-archive-contents is populated (#51).,
Michael Albinus <=
- [elpa] master 1794ea4 182/187: async-start is now a function (#43)., Michael Albinus, 2015/12/30
- [elpa] master 8bb464f 170/187: Add melpa badges to README., Michael Albinus, 2015/12/30
- [elpa] master 1ddb3a0 169/187: Add to load-path and load only async., Michael Albinus, 2015/12/30
- [elpa] master 3248303 174/187: Merge pull request #55 from syohex/correct-header, Michael Albinus, 2015/12/30
- [elpa] master 5c61408 179/187: Update version in *pkg.el file., Michael Albinus, 2015/12/30
- [elpa] master 1f12717 178/187: Don't recompute length fn-list, ensure operation is downcased for safety (#57)., Michael Albinus, 2015/12/30
- [elpa] master 57257f0 167/187: Merge branch 'master' of github.com:jwiegley/emacs-async, Michael Albinus, 2015/12/30
- [elpa] master 128eb83 171/187: Fix pkg file and instructions in dired-async., Michael Albinus, 2015/12/30
- [elpa] master 53fccc5 175/187: Rename buffers after renaming (#56)., Michael Albinus, 2015/12/30
- [elpa] master ca73877 183/187: Merge pull request #57 from jwiegley/HEAD, Michael Albinus, 2015/12/30