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

Don't warn about missing license file for public domain packages

Fixes ticket #247.
The whole concept of public domain as a license is also rather dodgy. In
many legal jurisdictions it has no legal meaning and where it does one
usually has to disclaim any copyright interest explicitly.
parent bcdfdfb0
......@@ -235,7 +235,10 @@ checkLicense pkg =
"The 'license' field is missing or specified as AllRightsReserved."
, check (null (licenseFile pkg)) $
, check (license pkg `notElem` [AllRightsReserved, PublicDomain]
-- AllRightsReserved and PublicDomain are not strictly
-- licenses so don't need license files.
&& null (licenseFile pkg)) $
PackageDistSuspicious "A 'license-file' is not specified."
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