From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 1/2] store: Add query-path-info operation. Date: Wed, 18 Mar 2015 09:55:11 +0100 Message-ID: <878ueuk7m8.fsf@gnu.org> References: <87egon1xkg.fsf@fsf.org> <87bnjr1xec.fsf@fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YY9ky-0007if-R6 for guix-devel@gnu.org; Wed, 18 Mar 2015 04:55:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YY9kv-0004xs-Lp for guix-devel@gnu.org; Wed, 18 Mar 2015 04:55:16 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YY9kv-0004xk-IQ for guix-devel@gnu.org; Wed, 18 Mar 2015 04:55:13 -0400 In-Reply-To: <87bnjr1xec.fsf@fsf.org> (David Thompson's message of "Tue, 17 Mar 2015 11:00:59 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: David Thompson Cc: guix-devel@gnu.org David Thompson skribis: > From e72bd43190bd561f7d96810a93f3b30f5f741343 Mon Sep 17 00:00:00 2001 > From: David Thompson > Date: Tue, 17 Mar 2015 10:19:36 -0400 > Subject: [PATCH 1/2] store: Add query-path-info operation. > > * guix/store.scm (): New record type. > (read-path-info): New procedure. > (read-arg): Add 'path-info' syntax. > (query-path-info): New variable. [...] > + (reg-time path-info-reg-time) Please change the procedure name to =E2=80=98path-info-registration-time=E2= =80=99. > +(define-operation (query-path-info (store-path path)) > + "Return the derivation store path for PATH." > + path-info) Invalid docstring. Could you add a test in tests/store.scm? It could add a file with =E2=80=98add-text-to-store=E2=80=99, with a non-empty reference list, and c= heck its references and hash, for instance. Thanks! Ludo=E2=80=99.