File tree 2 files changed +8
-3
lines changed
Distribution/Client/Mirror/Repo 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,12 @@ withSourceRepo verbosity httpLib uri cacheDir threshold keys callback = do
68
68
}
69
69
}
70
70
71
+ repoOptions :: Sec.Remote. RepoOpts
72
+ repoOptions = Sec.Remote. RepoOpts
73
+ { repoAllowContentCompression = True
74
+ , repoWantCompressedIndex = True
75
+ , repoAllowAdditionalMirrors = True
76
+ }
71
77
72
78
logger :: Sec. LogMessage -> IO ()
73
79
logger msg = when (verbosity >= verbose) $
@@ -76,8 +82,7 @@ withSourceRepo verbosity httpLib uri cacheDir threshold keys callback = do
76
82
Sec.Remote. withRepository
77
83
httpLib
78
84
[uri]
79
- Sec.Remote. AllowContentCompression
80
- Sec.Remote. WantCompressedIndex
85
+ repoOptions
81
86
cache
82
87
Sec. hackageRepoLayout
83
88
logger $ \ rep ->
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ executable hackage-mirror
366
366
SHA,
367
367
parsec,
368
368
process >= 1.2.0 ,
369
- hackage-security,
369
+ hackage-security >= 0.2 ,
370
370
hackage-security-HTTP
371
371
default-language : Haskell2010
372
372
default-extensions : FlexibleContexts
You can’t perform that action at this time.
0 commit comments