Drop unused subdirectory

This commit is contained in:
Bryan Richter 2024-11-05 17:18:55 +02:00
parent 66c5361458
commit 885dd2a01e
No known key found for this signature in database
GPG Key ID: B202264020068BFB

View File

@ -825,7 +825,6 @@ createHoogleDB snapshotId snapName =
logInfo $ "Creating Hoogle DB for " <> display snapName
downloadBucketUrl <- scDownloadBucketUrl <$> ask
let root = "hoogle-gen"
bindir = root </> "bindir"
outname = root </> "output.hoo"
tarKey = toPathPiece snapName <> "/hoogle/orig.tar"
tarUrl = downloadBucketUrl <> "/" <> tarKey
@ -841,9 +840,7 @@ createHoogleDB snapshotId snapName =
createDirectoryIfMissing True $ takeDirectory tarFP
withBinaryFileDurableAtomic tarFP WriteMode $ \tarHandle ->
runConduitRes $ bodyReaderSource (responseBody res) .| sinkHandle tarHandle
void $ tryIO $ removeDirectoryRecursive bindir
void $ tryIO $ removeFile outname
createDirectoryIfMissing True bindir
withSystemTempDirectory ("hoogle-" ++ T.unpack (textDisplay snapName)) $ \tmpdir -> do
Any hasRestored <-
runConduitRes $