branch: elpa/helm commit a4f5104220a15f534e30d2b6be3e2e032f7bd969 Author: Thierry Volpiatto <thie...@posteo.net> Commit: Thierry Volpiatto <thie...@posteo.net>
Fix packages with (:url nil) entry Assume that when :url = nil the package is maintained in elpa. We have such entry when recipes are fetched on emacsmirror. --- helm-packages.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/helm-packages.el b/helm-packages.el index 047b59146b..01b9d3566a 100644 --- a/helm-packages.el +++ b/helm-packages.el @@ -263,7 +263,11 @@ PROVIDER can be one of \"melpa\", \"gnu\" or \"nongnu\"." (if (keywordp (cadr data)) (car data) data)))))) (package-recipe (assq package recipe)) (core (plist-get (cdr package-recipe) :core)) - (url (plist-get (cdr package-recipe) :url))) + (url (or (plist-get (cdr package-recipe) :url) + ;; Assume that when :url = nil the package is maintained in + ;; elpa. When recipe is fetched from package-archives + ;; addresses the url is always specified. + "https://git.sv.gnu.org/git/emacs/elpa.git"))) (cl-assert (null core) nil (format "Package '%s' already provided in Emacs at '%s'" package core))