File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
hackage-security/src/Hackage/Security Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ createPackageMetadata opts repoLoc whenWrite pkgId = do
410
410
411
411
-- | Find the files we need to add to the index
412
412
findNewIndexFiles :: GlobalOpts -> RepoLoc -> WhenWrite -> IO [IndexPath ]
413
- findNewIndexFiles opts@ GlobalOpts {.. } repoLoc whenWrite = do
413
+ findNewIndexFiles opts@ GlobalOpts {} repoLoc whenWrite = do
414
414
indexTS <- getFileModTime opts repoLoc (InRep repoLayoutIndexTar)
415
415
indexFiles <- getRecursiveContents absIndexDir
416
416
@@ -430,7 +430,7 @@ findNewIndexFiles opts@GlobalOpts{..} repoLoc whenWrite = do
430
430
431
431
-- | Extract the cabal file from the package tarball and copy it to the index
432
432
extractCabalFile :: GlobalOpts -> RepoLoc -> WhenWrite -> PackageIdentifier -> IO ()
433
- extractCabalFile opts@ GlobalOpts {.. } repoLoc whenWrite pkgId = do
433
+ extractCabalFile opts@ GlobalOpts {} repoLoc whenWrite pkgId = do
434
434
srcTS <- getFileModTime opts repoLoc src
435
435
dstTS <- getFileModTime opts repoLoc dst
436
436
let skip = case whenWrite of
Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ getRemoteFile :: ( Throws VerificationError
374
374
-> Maybe UTCTime
375
375
-> RemoteFile (f :- () ) Metadata
376
376
-> Verify (Trusted a , down Metadata )
377
- getRemoteFile rep@ Repository {.. } cachedInfo@ CachedInfo {.. } isRetry mNow file = do
377
+ getRemoteFile rep@ Repository {} cachedInfo@ CachedInfo {.. } isRetry mNow file = do
378
378
(targetPath, tempPath) <- getRemote' rep isRetry file
379
379
verifyFileInfo' (remoteFileDefaultInfo file) targetPath tempPath
380
380
signed <- throwErrorsChecked (VerificationErrorDeserialization targetPath) =<<
Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ getRemote remoteConfig selectedMirror attemptNr remoteFile = do
238
238
-- error we want to make sure caches get files upstream in case the validation
239
239
-- error was because the cache updated files out of order.
240
240
httpRequestHeaders :: RemoteConfig -> AttemptNr -> [HttpRequestHeader ]
241
- httpRequestHeaders RemoteConfig {.. } attemptNr =
241
+ httpRequestHeaders RemoteConfig {} attemptNr =
242
242
if attemptNr == 0 then defaultHeaders
243
243
else HttpRequestMaxAge0 : defaultHeaders
244
244
where
@@ -256,7 +256,7 @@ withMirror :: forall a.
256
256
-> Maybe [Mirror ] -- ^ TUF mirrors
257
257
-> IO a -- ^ Callback
258
258
-> IO a
259
- withMirror HttpLib {.. }
259
+ withMirror HttpLib {}
260
260
selectedMirror
261
261
logger
262
262
oobMirrors
You can’t perform that action at this time.
0 commit comments