~ruther/guix-local

b4b1fe9d2f7321a95fa16d18a5f0088908122361 — Eric Bavier 10 years ago 84de458
profiles: Process ghc conf files only once.

A package may be listed in the manifest inputs multiple times.  Avoid
copying ghc *.conf files twice by deleting duplicates.

* guix/profiles.scm (ghc-package-cache-file)[conf-files]: Delete
  duplicate manifest inputs before copying conf files.
1 files changed, 2 insertions(+), 1 deletions(-)

M guix/profiles.scm
M guix/profiles.scm => guix/profiles.scm +2 -1
@@ 512,7 512,8 @@ entries of MANIFEST, or #f if MANIFEST does not have any GHC packages."
        (system* (string-append #+ghc "/bin/ghc-pkg") "init" db-dir)
        (for-each copy-conf-file
                  (append-map conf-files
                              '#$(manifest-inputs manifest)))
                              (delete-duplicates
                               '#$(manifest-inputs manifest))))
        (let ((success
               (zero?
                (system* (string-append #+ghc "/bin/ghc-pkg") "recache"