guix system: Use 'mapm/accumulate-builds'.

* guix/scripts/system.scm (perform-action): Use 'mapm/accumulate-builds'
instead of 'mapm'.
This commit is contained in:
Ludovic Courtès 2020-04-02 10:58:38 +02:00
parent 223ede4e15
commit 2ad6eb0568
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -825,10 +825,10 @@ (define bootcfg
;; 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))