list-packages: Add status link only for systems supported on Hydra.
authorLudovic Courtès <ludo@gnu.org>
Fri, 1 May 2015 14:10:08 +0000 (16:10 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 1 May 2015 14:10:08 +0000 (16:10 +0200)
* build-aux/list-packages.scm (package->sxml)[status]:
  Intersect (package-transitive-supported-systems package) with
  %HYDRA-SUPPORTED-SYSTEMS.

build-aux/list-packages.scm

index f3e4ac2..c4f4452 100755 (executable)
@@ -167,7 +167,11 @@ decreasing, is 1."
           ,system))
 
     `(div "status: "
-          ,(list-join (map url (package-transitive-supported-systems package))
+          ,(list-join (map url
+                           (lset-intersection
+                            string=?
+                            %hydra-supported-systems
+                            (package-transitive-supported-systems package)))
                       " ")))
 
   (define (package-logo name)