all repos — nixfiles @ 2620a173aec17d3c1f630ae8f6ebded7a8c07e35

System and user configuration, managed by nix and home-manager

Emacs: Make package-archive-stats more resilient Filters out packages missing from package-archive-contents

Alan Pearce
commit

2620a173aec17d3c1f630ae8f6ebded7a8c07e35

parent

f3345c44413ff7959d4895912672e5ac6f4e7453

1 file changed, 1 insertion(+), 1 deletion(-)

jump to
M tag-emacs/emacs.d/init.eltag-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))