gnupdate: Support `meta.homepage' as a string list.

* maintainers/scripts/gnu/gnupdate (gnu?): Improve type-checking of
  `meta.homepage'; support string lists.

svn path=/nixpkgs/trunk/; revision=29315
This commit is contained in:
Ludovic Courtès 2011-09-17 10:09:26 +00:00
parent 98f6452a70
commit 8a904741f8

View File

@ -715,8 +715,10 @@ Return #t if the signature was good, #f otherwise."
(match attr
(('attribute _ "description" value)
(string-prefix? "GNU" value))
(('attribute _ "homepage" value)
(('attribute _ "homepage" (? string? value))
(string-contains value "www.gnu.org"))
(('attribute _ "homepage" ((? string? value) ...))
(any (cut string-contains <> "www.gnu.org") value))
(_ #f)))
metas))
(_ #f)))