Commit 5b9dfcb3 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

D.PD.Check: extra-doc-files only allowed when Cabal >= 1.18.

parent 101a0fed
......@@ -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 $
......
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