mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
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.
This commit is contained in:
parent
84de458ba8
commit
b4b1fe9d2f
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue