File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -823,12 +823,16 @@ buildAndUploadHoogleDBs doNotUpload = do
823
823
-- stackage-server downloads its own version separately.
824
824
mfp <- singleRun locker snapName
825
825
case mfp of
826
- Just _ -> do
826
+ Just fp -> do
827
827
-- Something bad must have happened: we created the hoogle db
828
828
-- previously, but didn't get to record it as available.
829
829
logWarn $ " Unregistered hoogle database found for: " <> display snapName
830
830
<> " . Registering now."
831
831
void $ insertH snapshotId
832
+ -- FIXME: For now we need to delete this file we just
833
+ -- downloaded. We probably shouldn't download it in the
834
+ -- first place, though.
835
+ liftIO $ removeFile fp
832
836
Nothing -> do
833
837
logInfo $ " Current hoogle database does not yet exist in the bucket for: " <> display snapName
834
838
-- NB: createHoogleDB will fail if something goes wrong.
You can’t perform that action at this time.
0 commit comments