ci: Try hard to build package replacements.
authorLudovic Courtès <ludo@gnu.org>
Mon, 26 Aug 2019 09:42:37 +0000 (11:42 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 26 Aug 2019 11:40:46 +0000 (13:40 +0200)
The "ghostscript" replacements introduced in
0b859092a7346f3b4d0a3a4dac878fd64fd70b79 would not be built because they
have the same name as the original packages.

* gnu/ci.scm (all-packages): Return the replacement of PACKAGE before
PACKAGE.

gnu/ci.scm

index aeebd4f..5d5a826 100644 (file)
@@ -331,8 +331,12 @@ valid."
   "Return the list of packages to build."
   (define (adjust package result)
     (cond ((package-replacement package)
-           (cons* package                         ;build both
-                  (package-replacement package)
+           ;; XXX: If PACKAGE and its replacement have the same name/version,
+           ;; then both Cuirass jobs will have the same name, which
+           ;; effectively means that the second one will be ignored.  Thus,
+           ;; return the replacement first.
+           (cons* (package-replacement package)   ;build both
+                  package
                   result))
           ((package-superseded package)
            result)                                ;don't build it