guix-commits
[Top][All Lists]
Advanced

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

02/04: import: crate: Deduplicate dependencies.


From: guix-commits
Subject: 02/04: import: crate: Deduplicate dependencies.
Date: Tue, 24 Mar 2020 10:44:55 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit cf2b91aad04172b49c8716ea8c27a07d512c04f1
Author: Martin Becze <address@hidden>
AuthorDate: Thu Jan 30 10:52:28 2020 -0500

    import: crate: Deduplicate dependencies.
    
    * guix/import/crate.scm (crate-version-dependencies): Deduplicate crate 
dependencies.
    
    Signed-off-by: Ludovic Court├Ęs <address@hidden>
---
 guix/import/crate.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/import/crate.scm b/guix/import/crate.scm
index 57823c3..0b4482e 100644
--- a/guix/import/crate.scm
+++ b/guix/import/crate.scm
@@ -112,7 +112,7 @@ record or #f if it was not found."
          (url  (string-append (%crate-base-url) path)))
     (match (assoc-ref (or (json-fetch url) '()) "dependencies")
       ((? vector? vector)
-       (map json->crate-dependency (vector->list vector)))
+       (delete-duplicates (map json->crate-dependency (vector->list vector))))
       (_
        '()))))
 



reply via email to

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