mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-23 09:21:56 +01:00
Use suffix instead of fp (PEBKAC)
This commit is contained in:
parent
8dc6c65b9d
commit
904c3f3e70
@ -103,7 +103,7 @@ createCompressor rawdir gzdir cachedir = do
|
|||||||
return $ void $ tryPutMVar baton ()
|
return $ void $ tryPutMVar baton ()
|
||||||
where
|
where
|
||||||
go fp = liftIO $ handle (print . asSomeException) $ do
|
go fp = liftIO $ handle (print . asSomeException) $ do
|
||||||
gzipHash cachedir fp (gzdir </> fp)
|
gzipHash cachedir fp (gzdir </> suffix)
|
||||||
where
|
where
|
||||||
Just suffix = F.stripPrefix (rawdir </> "") fp
|
Just suffix = F.stripPrefix (rawdir </> "") fp
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user