summary refs log tree commit diff
path: root/maintainers
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2011-09-17 10:09:26 +0000
committerLudovic Courtès <ludo@gnu.org>2011-09-17 10:09:26 +0000
commit8a904741f846fa27672bf50d4512ef11fb954e52 (patch)
tree64fa2d01fb1e34208ce4c7b567ec5919be7f2624 /maintainers
parent98f6452a7077d38eb09af88a90739ab9950565a1 (diff)
downloadnixpkgs-8a904741f846fa27672bf50d4512ef11fb954e52.tar
nixpkgs-8a904741f846fa27672bf50d4512ef11fb954e52.tar.gz
nixpkgs-8a904741f846fa27672bf50d4512ef11fb954e52.tar.bz2
nixpkgs-8a904741f846fa27672bf50d4512ef11fb954e52.tar.lz
nixpkgs-8a904741f846fa27672bf50d4512ef11fb954e52.tar.xz
nixpkgs-8a904741f846fa27672bf50d4512ef11fb954e52.tar.zst
nixpkgs-8a904741f846fa27672bf50d4512ef11fb954e52.zip
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
Diffstat (limited to 'maintainers')
-rwxr-xr-xmaintainers/scripts/gnu/gnupdate4
1 files changed, 3 insertions, 1 deletions
diff --git a/maintainers/scripts/gnu/gnupdate b/maintainers/scripts/gnu/gnupdate
index ef42fa02bed..96517f86cb8 100755
--- a/maintainers/scripts/gnu/gnupdate
+++ b/maintainers/scripts/gnu/gnupdate
@@ -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)))