mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Merge pull request #530 from CeleritasCelery/insecure-fix
Don't use HTTPS when INSECURE variable is set
This commit is contained in:
@ -96,9 +96,13 @@ missing) and shouldn't be deleted.")
|
|||||||
package-user-dir (expand-file-name "elpa" doom-packages-dir)
|
package-user-dir (expand-file-name "elpa" doom-packages-dir)
|
||||||
package-enable-at-startup nil
|
package-enable-at-startup nil
|
||||||
package-archives
|
package-archives
|
||||||
'(("gnu" . "https://elpa.gnu.org/packages/")
|
(if (getenv "INSECURE")
|
||||||
("melpa" . "https://melpa.org/packages/")
|
'(("gnu" . "http://elpa.gnu.org/packages/")
|
||||||
("org" . "https://orgmode.org/elpa/"))
|
("melpa" . "http://melpa.org/packages/")
|
||||||
|
("org" . "http://orgmode.org/elpa/"))
|
||||||
|
'(("gnu" . "https://elpa.gnu.org/packages/")
|
||||||
|
("melpa" . "https://melpa.org/packages/")
|
||||||
|
("org" . "https://orgmode.org/elpa/")))
|
||||||
;; I omit Marmalade because its packages are manually submitted rather
|
;; I omit Marmalade because its packages are manually submitted rather
|
||||||
;; than pulled, so packages are often out of date with upstream.
|
;; than pulled, so packages are often out of date with upstream.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user