Skip to content

Commit

Permalink
Merge pull request haskell#428 from bennofs/fix-mirror-client
Browse files Browse the repository at this point in the history
fix mirror client build failure
  • Loading branch information
kosmikus committed Oct 10, 2015
2 parents 9a051d2 + 01f4cb5 commit 067506e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Distribution/Client/Mirror/Repo/Secure.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ withSourceRepo verbosity httpLib uri cacheDir threshold keys callback = do
}
}

repoOptions :: Sec.Remote.RepoOpts
repoOptions = Sec.Remote.RepoOpts
{ repoAllowContentCompression = True
, repoWantCompressedIndex = True
, repoAllowAdditionalMirrors = True
}

logger :: Sec.LogMessage -> IO ()
logger msg = when (verbosity >= verbose) $
Expand All @@ -76,8 +82,7 @@ withSourceRepo verbosity httpLib uri cacheDir threshold keys callback = do
Sec.Remote.withRepository
httpLib
[uri]
Sec.Remote.AllowContentCompression
Sec.Remote.WantCompressedIndex
repoOptions
cache
Sec.hackageRepoLayout
logger $ \rep ->
Expand Down
2 changes: 1 addition & 1 deletion hackage-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ executable hackage-mirror
SHA,
parsec,
process >= 1.2.0,
hackage-security,
hackage-security >= 0.2,
hackage-security-HTTP
default-language: Haskell2010
default-extensions: FlexibleContexts
Expand Down

0 comments on commit 067506e

Please sign in to comment.