From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:50786) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAAjz-0000T5-Eq for guix-patches@gnu.org; Fri, 06 Mar 2020 06:02:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAAjy-0001cU-6v for guix-patches@gnu.org; Fri, 06 Mar 2020 06:02:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38184) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAAjx-0001be-MJ for guix-patches@gnu.org; Fri, 06 Mar 2020 06:02:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jAAjx-0007wH-JV for guix-patches@gnu.org; Fri, 06 Mar 2020 06:02:01 -0500 Subject: [bug#39547] [PATCH v3] sources.json: array instead of list Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200210170418.32076-1-zimon.toutoune@gmail.com> Date: Fri, 06 Mar 2020 12:01:36 +0100 In-Reply-To: (zimoun's message of "Mon, 2 Mar 2020 18:24:49 +0100") Message-ID: <87o8t9oigf.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: zimoun Cc: 39547@debbugs.gnu.org Hi! zimoun skribis: > Attached, the tiny modification to output the list (array) of URLs > instead of the first one. > The version number is still '1' because I do not know yet if lewo would b= ump it. > Note also that "transformer" is not useful any more because > 'packages-json-builder' and 'sources-json-builder' returns both > vectors now. Cool. > From 57a444f6f215fb6327719161a6e6ad4ad229273f Mon Sep 17 00:00:00 2001 > From: zimoun > Date: Mon, 10 Feb 2020 17:52:13 +0100 > Subject: [PATCH v3 1/2] website: Refactor and resolve mirror:// of JSON > package list. > > * website/apps/packages/builder.scm (origin->json): New procedure. LGTM! > From 73557bc00760b4404bfe17ecb3aca983c6dcc11e Mon Sep 17 00:00:00 2001 > From: zimoun > Date: Tue, 18 Feb 2020 13:25:14 +0100 > Subject: [PATCH v3 2/2] website: Provide JSON sources list used by Softwa= re > Heritage. > > Format discussed here . > > * website/apps/packages/builder.scm (origin->json): Add list modifier. > * website/apps/packages/builder.scm (sources-json-builder): New procedure. Nitpick: no need to repeat the file name here. Also: please mention the addition to the =E2=80=98builder=E2=80=99 procedur= e. > +(define* (origin->json origin #:optional (transformer list->vector)) You can remove this parameter, as you wrote. I can make these changes and push it on your behalf if you want, let me know! Thanks, Ludo=E2=80=99.