Commit 00e9a094 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov Committed by GitHub
Browse files

Merge pull request #3825 from 23Skidoo/check-extra-doc-files

D.PD.Check: extra-doc-files only allowed when Cabal >= 1.18.
parents 5289f179 5b9dfcb3
......@@ -985,6 +985,12 @@ checkCabalVersion pkg =
++ "different modules then list the other ones in the "
++ "'other-languages' field."
, checkVersion [1,18]
(not . null $ extraDocFiles pkg) $
PackageDistInexcusable $
"To use the 'extra-doc-files' field the package needs to specify "
++ "at least 'cabal-version: >= 1.18'."
, checkVersion [1,23]
(not (null (subLibraries pkg))) $
PackageDistInexcusable $
......
......@@ -46,4 +46,3 @@ instance Text BuildType where
"Custom" -> Custom
"Make" -> Make
_ -> UnknownBuildType name
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment