Skip to content

Commit

Permalink
properly resolve local package archive urls
Browse files Browse the repository at this point in the history
  • Loading branch information
d12frosted committed Sep 13, 2016
1 parent b7c84b5 commit 8578b40
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions core/core-configuration-layer.el
Original file line number Diff line number Diff line change
Expand Up @@ -304,18 +304,21 @@ The returned list has a `package-archives' compliant format."
(mapcar
(lambda (x)
(cons (car x)
(if (string-match-p "http" (cdr x))
(if (or (string-match-p "http" (cdr x))
(string-prefix-p "/" (cdr x)))
(cdr x)
(concat (if (and dotspacemacs-elpa-https
(not spacemacs-insecure)
;; for now org ELPA repository does
;; not support HTTPS
;; TODO when org ELPA repo support
;; HTTPS remove the check
;; `(not (equal "org" (car x)))'
(not (equal "org" (car x))))
"https://"
"http://") (cdr x)))))
(concat
(if (and dotspacemacs-elpa-https
(not spacemacs-insecure)
;; for now org ELPA repository does
;; not support HTTPS
;; TODO when org ELPA repo support
;; HTTPS remove the check
;; `(not (equal "org" (car x)))'
(not (equal "org" (car x))))
"https://"
"http://")
(cdr x)))))
archives))

(defun configuration-layer/retrieve-package-archives (&optional quiet force)
Expand Down

0 comments on commit 8578b40

Please sign in to comment.