mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-28 03:40:24 +01:00
A MIN_VERSION for Cabal
This commit is contained in:
parent
4068fc53e4
commit
101e5758cf
@ -214,7 +214,12 @@ getMetadata name version hash' gpd = do
|
|||||||
env <- ask
|
env <- ask
|
||||||
return $ liftIO $ runNoLoggingT $ flip runReaderT env $ do
|
return $ liftIO $ runNoLoggingT $ flip runReaderT env $ do
|
||||||
(mreadme, mchangelog, mlicenseContent) <-
|
(mreadme, mchangelog, mlicenseContent) <-
|
||||||
grabExtraFiles name version $ PD.licenseFiles pd
|
grabExtraFiles name version
|
||||||
|
#if MIN_VERSION_Cabal(1, 20, 0)
|
||||||
|
$ PD.licenseFiles pd
|
||||||
|
#else
|
||||||
|
[PD.licenseFile pd]
|
||||||
|
#endif
|
||||||
return Metadata
|
return Metadata
|
||||||
{ metadataName = name
|
{ metadataName = name
|
||||||
, metadataVersion = version
|
, metadataVersion = version
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user