diff options
author | Martin Becze <mjbecze@riseup.net> | 2020-01-30 10:52:28 -0500 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-03-24 15:44:45 +0100 |
commit | cf2b91aad04172b49c8716ea8c27a07d512c04f1 (patch) | |
tree | afca77d2c8ab01fb492be7db9f7b4131cd5f32c9 | |
parent | b488b64a3e22dae272a41990384fc74ddafef86c (diff) | |
download | patches-cf2b91aad04172b49c8716ea8c27a07d512c04f1.tar patches-cf2b91aad04172b49c8716ea8c27a07d512c04f1.tar.gz |
import: crate: Deduplicate dependencies.
* guix/import/crate.scm (crate-version-dependencies): Deduplicate crate dependencies.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r-- | guix/import/crate.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/import/crate.scm b/guix/import/crate.scm index 57823c3639..0b4482e876 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)))) (_ '())))) |