Emacs: Make package-archive-stats more resilient Filters out packages missing from package-archive-contents
Alan Pearce alan@alanpearce.co.uk
Tue, 15 Jul 2014 21:45:42 +0100
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M tag-emacs/emacs.d/init.el → tag-emacs/emacs.d/init.el
@@ -69,7 +69,7 @@ (dolist (arc package-archives) (puthash (car arc) 0 archives)) (maphash (lambda (k v) (setq assoc (cons (cons k v) assoc))) - (dolist (pkg (package-list-installed) archives) + (dolist (pkg (-filter #'identity (package-list-installed)) archives) (let ((pkg-arc (package-desc-archive pkg))) (incf (gethash pkg-arc archives))))) assoc))