mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-11 19:58:28 +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
|
||||
return $ liftIO $ runNoLoggingT $ flip runReaderT env $ do
|
||||
(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
|
||||
{ metadataName = name
|
||||
, metadataVersion = version
|
||||
|
||||
Loading…
Reference in New Issue
Block a user