guix system: Use 'mapm/accumulate-builds'.
authorLudovic Courtès <ludo@gnu.org>
Thu, 2 Apr 2020 08:58:38 +0000 (10:58 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 2 Apr 2020 09:48:24 +0000 (11:48 +0200)
* guix/scripts/system.scm (perform-action): Use 'mapm/accumulate-builds'
instead of 'mapm'.

guix/scripts/system.scm

index a178761..4937e68 100644 (file)
@@ -825,10 +825,10 @@ static checks."
        ;; For 'init' and 'reconfigure', always build BOOTCFG, even if
        ;; --no-bootloader is passed, because we then use it as a GC root.
        ;; See <http://bugs.gnu.org/21068>.
-       (drvs      (mapm %store-monad lower-object
-                        (if (memq action '(init reconfigure))
-                            (list sys bootcfg)
-                            (list sys))))
+       (drvs      (mapm/accumulate-builds lower-object
+                                          (if (memq action '(init reconfigure))
+                                              (list sys bootcfg)
+                                              (list sys))))
        (%         (if derivations-only?
                       (return (for-each (compose println derivation-file-name)
                                         drvs))