mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +01:00
Drop unused subdirectory
This commit is contained in:
parent
66c5361458
commit
885dd2a01e
@ -825,7 +825,6 @@ createHoogleDB snapshotId snapName =
|
|||||||
logInfo $ "Creating Hoogle DB for " <> display snapName
|
logInfo $ "Creating Hoogle DB for " <> display snapName
|
||||||
downloadBucketUrl <- scDownloadBucketUrl <$> ask
|
downloadBucketUrl <- scDownloadBucketUrl <$> ask
|
||||||
let root = "hoogle-gen"
|
let root = "hoogle-gen"
|
||||||
bindir = root </> "bindir"
|
|
||||||
outname = root </> "output.hoo"
|
outname = root </> "output.hoo"
|
||||||
tarKey = toPathPiece snapName <> "/hoogle/orig.tar"
|
tarKey = toPathPiece snapName <> "/hoogle/orig.tar"
|
||||||
tarUrl = downloadBucketUrl <> "/" <> tarKey
|
tarUrl = downloadBucketUrl <> "/" <> tarKey
|
||||||
@ -841,9 +840,7 @@ createHoogleDB snapshotId snapName =
|
|||||||
createDirectoryIfMissing True $ takeDirectory tarFP
|
createDirectoryIfMissing True $ takeDirectory tarFP
|
||||||
withBinaryFileDurableAtomic tarFP WriteMode $ \tarHandle ->
|
withBinaryFileDurableAtomic tarFP WriteMode $ \tarHandle ->
|
||||||
runConduitRes $ bodyReaderSource (responseBody res) .| sinkHandle tarHandle
|
runConduitRes $ bodyReaderSource (responseBody res) .| sinkHandle tarHandle
|
||||||
void $ tryIO $ removeDirectoryRecursive bindir
|
|
||||||
void $ tryIO $ removeFile outname
|
void $ tryIO $ removeFile outname
|
||||||
createDirectoryIfMissing True bindir
|
|
||||||
withSystemTempDirectory ("hoogle-" ++ T.unpack (textDisplay snapName)) $ \tmpdir -> do
|
withSystemTempDirectory ("hoogle-" ++ T.unpack (textDisplay snapName)) $ \tmpdir -> do
|
||||||
Any hasRestored <-
|
Any hasRestored <-
|
||||||
runConduitRes $
|
runConduitRes $
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user