Commit 02603091 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Distributing a package with no synopsis and no description is inexcusable

Previously if one or the other or both were missing we only warned.
Now if neither are given it's an error. We still warn about either
missing.
parent b7cec38b
......@@ -291,13 +291,16 @@ checkFields pkg =
, check (null (category pkg)) $
PackageDistSuspicious "No 'category' field."
, check (null (description pkg)) $
PackageDistSuspicious "No 'description' field."
, check (null (maintainer pkg)) $
PackageDistSuspicious "No 'maintainer' field."
, check (null (synopsis pkg)) $
, check (null (synopsis pkg) && null (description pkg)) $
PackageDistInexcusable $ "No 'synopsis' or 'description' field."
, check (null (description pkg) && not (null (synopsis pkg))) $
PackageDistSuspicious "No 'description' field."
, check (null (synopsis pkg) && not (null (description pkg))) $
PackageDistSuspicious "No 'synopsis' field."
, check (length (synopsis pkg) >= 80) $
......
Markdown is supported
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