guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: profiles: Process ghc conf files only once.


From: Eric Bavier
Subject: 02/04: profiles: Process ghc conf files only once.
Date: Fri, 12 Jun 2015 05:54:39 +0000

bavier pushed a commit to branch master
in repository guix.

commit b4b1fe9d2f7321a95fa16d18a5f0088908122361
Author: Eric Bavier <address@hidden>
Date:   Sat Jun 6 06:43:19 2015 -0500

    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 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/guix/profiles.scm b/guix/profiles.scm
index 33a0511..5c19c95 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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]