branch: elpa/helm
commit bbaa92c21441287b11dff469b538b85fe52866b5
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Add nongnu fallback url
---
 helm-packages.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/helm-packages.el b/helm-packages.el
index aeb948ed57..d6537192b5 100644
--- a/helm-packages.el
+++ b/helm-packages.el
@@ -266,9 +266,11 @@ PROVIDER can be one of \"melpa\", \"gnu\" or \"nongnu\"."
          (core (plist-get (cdr package-recipe) :core))
          (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
+                  ;; elpa or nongnu. When recipe is fetched from 
package-archives
                   ;; addresses the url is always specified.
-                  "https://git.sv.gnu.org/git/emacs/elpa.git";))
+                  (helm-acase provider
+                    ("gnu"    "https://git.sv.gnu.org/git/emacs/elpa.git";)
+                    ("nongnu" "https://git.sv.gnu.org/git/emacs/nongnu.git";))))
          (branch (plist-get (cdr package-recipe) :branch)))
     (cl-assert (null core) nil
                (format "Package '%s' already provided in Emacs at '%s'"

Reply via email to