Skip to content

Commit 067506e

Browse files
committed
Merge pull request #428 from bennofs/fix-mirror-client
fix mirror client build failure
2 parents 9a051d2 + 01f4cb5 commit 067506e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Distribution/Client/Mirror/Repo/Secure.hs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ withSourceRepo verbosity httpLib uri cacheDir threshold keys callback = do
6868
}
6969
}
7070

71+
repoOptions :: Sec.Remote.RepoOpts
72+
repoOptions = Sec.Remote.RepoOpts
73+
{ repoAllowContentCompression = True
74+
, repoWantCompressedIndex = True
75+
, repoAllowAdditionalMirrors = True
76+
}
7177

7278
logger :: Sec.LogMessage -> IO ()
7379
logger msg = when (verbosity >= verbose) $
@@ -76,8 +82,7 @@ withSourceRepo verbosity httpLib uri cacheDir threshold keys callback = do
7682
Sec.Remote.withRepository
7783
httpLib
7884
[uri]
79-
Sec.Remote.AllowContentCompression
80-
Sec.Remote.WantCompressedIndex
85+
repoOptions
8186
cache
8287
Sec.hackageRepoLayout
8388
logger $ \rep ->

hackage-server.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ executable hackage-mirror
366366
SHA,
367367
parsec,
368368
process >= 1.2.0,
369-
hackage-security,
369+
hackage-security >= 0.2,
370370
hackage-security-HTTP
371371
default-language: Haskell2010
372372
default-extensions: FlexibleContexts

0 commit comments

Comments
 (0)