From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:59192) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyxAY-00043u-Hq for guix-patches@gnu.org; Tue, 04 Feb 2020 07:19:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyxAW-0003Ui-Mi for guix-patches@gnu.org; Tue, 04 Feb 2020 07:19:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36755) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyxAW-0003TX-GZ for guix-patches@gnu.org; Tue, 04 Feb 2020 07:19:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iyxAW-0003mP-Bo for guix-patches@gnu.org; Tue, 04 Feb 2020 07:19:04 -0500 Subject: [bug#38408] [PATCH v9 5/8] guix: import: crate: deduplicate dependencies Resent-Message-ID: From: Martin Becze Date: Tue, 4 Feb 2020 07:18:22 -0500 Message-Id: <24fe155b78d5df8046e5fa1953fb5e07b7532f75.1580817140.git.mjbecze@riseup.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38408@debbugs.gnu.org Cc: ludo@gnu.org, efraim@flashner.co.il, jsoo1@asu.edu, Martin Becze * guix/import/crate.scm (crate-version-dependencies): deduplicate 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 9128314370..a82e5e877a 100644 --- a/guix/import/crate.scm +++ b/guix/import/crate.scm @@ -115,7 +115,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.0