(defvar package--downloads-in-progress nil
"List of in-progress asynchronous downloads.")
-(defvar package--all-keywords nil
- "List of known keywords.
-Generated by `package-all-keywords'. Reset to nil whenever the
-package archives are retrieved.")
-
(declare-function epg-check-configuration "epg-config"
(config &optional minimum-version))
(declare-function epg-configuration "epg-config" ())
(interactive)
(unless (file-exists-p package-user-dir)
(make-directory package-user-dir t))
- (setq package--all-keywords nil)
(let ((default-keyring (expand-file-name "package-keyring.gpg"
data-directory))
(package--silence async))
(defun package-all-keywords ()
"Collect all package keywords"
- (unless package--all-keywords
+ (let ((key-list))
(package--mapc (lambda (desc)
- (let* ((desc-keywords (and desc (package-desc--keywords desc))))
- (setq package--all-keywords (append desc-keywords package--all-keywords))))))
- package--all-keywords)
+ (setq key-list (append (package-desc--keywords desc)
+ key-list))))
+ key-list))
(defun package--mapc (function &optional packages)
"Call FUNCTION for all known PACKAGES.