From 81056961d065e197fe8f1f2096c858776debf485 Mon Sep 17 00:00:00 2001 From: Martin Becze Date: Thu, 30 Jan 2020 10:52:28 -0500 Subject: [PATCH v12 3/8] import: crate: Deduplicate dependencies. * guix/import/crate.scm (crate-version-dependencies): Deduplicate crate dependencies. --- 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 7e61bc21b6..b2a3dd7e70 100644 --- a/guix/import/crate.scm +++ b/guix/import/crate.scm @@ -118,7 +118,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)))) (_ '())))) -- 2.25.1