Skip to content

Commit

Permalink
Make secure remote-repos a bit more discoverable.
Browse files Browse the repository at this point in the history
Before this change, the relevant section of the default config file looked like
this:

repository hackage.haskell.org
  url: http://hackage.haskell.org/

With this change, it looks like this:

repository hackage.haskell.org
  url: http://hackage.haskell.org/
  -- secure: False
  -- root-keys:
  -- key-threshold:
  • Loading branch information
23Skidoo committed Feb 19, 2016
1 parent 26a43f4 commit f93c930
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cabal-install/Distribution/Client/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,9 @@ installDirsFields = map viewAsFieldDescr installDirsOptions

ppRemoteRepoSection :: RemoteRepo -> Doc
ppRemoteRepoSection vals = ppSection "repository" (remoteRepoName vals)
remoteRepoFields Nothing vals
remoteRepoFields def vals
where
def = Just (emptyRemoteRepo "ignored") { remoteRepoSecure = Just False }

remoteRepoFields :: [FieldDescr RemoteRepo]
remoteRepoFields =
Expand Down

0 comments on commit f93c930

Please sign in to comment.