From b4b1fe9d2f7321a95fa16d18a5f0088908122361 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Sat, 6 Jun 2015 06:43:19 -0500 Subject: 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. --- guix/profiles.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guix/profiles.scm b/guix/profiles.scm index 33a0511a3a..5c19c95d42 100644 --- a/guix/profiles.scm +++ b/guix/profiles.scm @@ -512,7 +512,8 @@ (define (copy-conf-file conf) (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" -- cgit v1.2.3