From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCNYM-0002in-Te for guix-patches@gnu.org; Sat, 28 Apr 2018 06:58:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCNYI-0004La-2k for guix-patches@gnu.org; Sat, 28 Apr 2018 06:58:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:33716) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fCNYH-0004LU-Uy for guix-patches@gnu.org; Sat, 28 Apr 2018 06:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fCNYH-00086x-Nj for guix-patches@gnu.org; Sat, 28 Apr 2018 06:58:01 -0400 Subject: [bug#31277] [PATCH 3/3] services: cgit: Make project-list permit a string. Resent-Message-ID: References: <20180426212309.10809-1-mail@cbaines.net> <20180426212309.10809-3-mail@cbaines.net> From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-reply-to: <20180426212309.10809-3-mail@cbaines.net> Date: Sat, 28 Apr 2018 12:57:16 +0200 Message-ID: <8736zfd2er.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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: Christopher Baines Cc: 31277@debbugs.gnu.org Christopher Baines writes: > Instead of having the service manage the list, it's useful to be able to point > this at an existing file, for example, when using cgit together with gitolite. > > * gnu/services/cgit.scm (project-list?): New procedure. > (serialize-project-list): Handle string values. > (): Change the predicate for project-list to allow lists > and strings. Hi Christopher, Good idea! But could you replace 'string?' with 'file-object?', so that the file can be in the store? And could you update the documentation? There is a helper (generate-cgit-documentation) that might help you do it. Otherwise it looks good to me. Thank you! Clément