From 80809d16c40759f941e33679b08c16399c6c9682 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Tue, 19 Dec 2017 16:16:37 -0500 Subject: [PATCH] Switch back to https Melpa for doc site related pkg installs Earlier I switched to http for Melpa because of this bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25061#90 That bug has been fixed on emacs-26 branch. --- test/setup-ox-hugo.el | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/setup-ox-hugo.el b/test/setup-ox-hugo.el index 97f17c0..a2366ed 100644 --- a/test/setup-ox-hugo.el +++ b/test/setup-ox-hugo.el @@ -1,4 +1,4 @@ -;; Time-stamp: <2017-12-19 15:34:39 kmodi> +;; Time-stamp: <2017-12-19 16:16:22 kmodi> ;; Setup to export Org files to Hugo-compatible Markdown using ;; `ox-hugo' in an "emacs -Q" environment. @@ -89,12 +89,10 @@ even if they are found as dependencies." ;; Below require will auto-create `package-user-dir' it doesn't exist. (require 'package) - ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25061#90 - ;; (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) - ;; (not (gnutls-available-p)))) - ;; (url (concat (if no-ssl "http" "https") "://melpa.org/packages/"))) - ;; (add-to-list 'package-archives (cons "melpa" url) :append)) - (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) ;For `toc-org' + (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) + (not (gnutls-available-p)))) + (url (concat (if no-ssl "http" "https") "://melpa.org/packages/"))) + (add-to-list 'package-archives (cons "melpa" url))) ;For `toc-org' ;; Even if we don't need to install Org from Elpa, we need to ;; add Org Elpa in `package-archives' to prevent the "Package