From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dccnt-0008TS-7J for guix-patches@gnu.org; Tue, 01 Aug 2017 15:26:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dccnq-00041f-CH for guix-patches@gnu.org; Tue, 01 Aug 2017 15:26:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34594) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dccnq-00041P-7q for guix-patches@gnu.org; Tue, 01 Aug 2017 15:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dccnp-0000fj-Uj for guix-patches@gnu.org; Tue, 01 Aug 2017 15:26:01 -0400 Subject: [bug#27907] [PATCH] graph: Provide access to the package record in the emit Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: Date: Tue, 01 Aug 2017 21:25:49 +0200 In-Reply-To: (Roel Janssen's message of "Tue, 01 Aug 2017 16:40:05 +0200") Message-ID: <87lgn3w0n6.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: Roel Janssen Cc: 27907@debbugs.gnu.org Roel Janssen skribis: > I would like to expand the Cypher back-end and in the long run add a > SPARQL graph back-end to GNU Guix. For this, I will need to have access > to the package records inside the emit-* functions. > > This patch makes this change by essentially changing the "label" > parameter of the emit-* functions passed as "(node-label head)" into a > "node" parameter, passed as "head". > > The rest of the patch adapts the current emit-* functions to this > change. > > I tested the Graphviz, D3js, and Cypher back-ends, and all seem to work > as before. > > Is it OK to apply this change? Sure, looks good to me! Ludo=E2=80=99.