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:
parent
98f6452a70
commit
8a904741f8
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user