summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2015-06-06 06:43:19 -0500
committerEric Bavier <bavier@member.fsf.org>2015-06-11 18:55:48 -0500
commitb4b1fe9d2f7321a95fa16d18a5f0088908122361 (patch)
tree121225cf0cc35e23b1af811686311245f6d03827 /guix
parent84de458ba8c6499dd63c6d7e7c67087df339e371 (diff)
downloadgnu-guix-b4b1fe9d2f7321a95fa16d18a5f0088908122361.tar
gnu-guix-b4b1fe9d2f7321a95fa16d18a5f0088908122361.tar.gz
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.
Diffstat (limited to 'guix')
-rw-r--r--guix/profiles.scm3
1 files changed, 2 insertions, 1 deletions
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 @@ 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"