patch applied (cabal): Make parsing of licenses more robust
Duncan Coutts
duncan.coutts at worc.ox.ac.uk
Mon Mar 24 22:35:52 EDT 2008
Fri Mar 21 11:13:00 PDT 2008 Duncan Coutts <duncan at haskell.org>
* Make parsing of licenses more robust
Added an UnknownLicense String constructor so that we can remember
unknown license names and report them and prevent them from being
uploaded to hackage, but not fail hard with a parse error upon
encountering an unknown license. This does not add any new licesnes
or and new valid parses of existing licenses. The parsing phase
now allows an optional version like "GPL-3" however that would still
be classified as an unknown license at the moment. The point is it's
no longer a parse error but a semantic error instead.
M ./Distribution/License.hs -4 +36
View patch online:
http://darcs.haskell.org/cabal/_darcs/patches/20080321181300-adfee-0fd4c330dddc32d1fe320f678164e9bd14f77115.gz
More information about the cabal-devel
mailing list