From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] guix package: Show which generation is the current one. Date: Wed, 25 Sep 2013 14:51:47 +0200 Message-ID: <87r4cdnjx8.fsf@gnu.org> References: <87vc2o4qwc.fsf@gnu.org> <87y57kljro.fsf@karetnikov.org> <87hae81uvo.fsf@gnu.org> <87li2oslzh.fsf_-_@karetnikov.org> <87hadcr4sh.fsf_-_@karetnikov.org> <8738ow5zif.fsf@gnu.org> <87vc1r6nu0.fsf@karetnikov.org> <87ob7izrsp.fsf_-_@karetnikov.org> <8761tqbd6h.fsf@gnu.org> <87wqm6tjd5.fsf@karetnikov.org> <87txha8fu4.fsf@gnu.org> <87a9j1bqhw.fsf@karetnikov.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]:49838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOoeK-0001lM-Ct for guix-devel@gnu.org; Wed, 25 Sep 2013 08:57:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOoeE-0008Is-IB for guix-devel@gnu.org; Wed, 25 Sep 2013 08:57:00 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:59762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOoeE-0008In-B8 for guix-devel@gnu.org; Wed, 25 Sep 2013 08:56:54 -0400 In-Reply-To: <87a9j1bqhw.fsf@karetnikov.org> (Nikita Karetnikov's message of "Wed, 25 Sep 2013 06:10:35 +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: Nikita Karetnikov Cc: guix-devel@gnu.org Nikita Karetnikov skribis: >> I=E2=80=99m suggesting to have a procedure like this: > >> (define (current-generation-number profile) >> ;; Return the current generation number of PROFILE. >> ...) > > We already have such a procedure. It=E2=80=99s called =E2=80=98generatio= n-number=E2=80=99. Oh, OK. > What do you think about this patch? Can I push it to =E2=80=98master=E2= =80=99? Yes! > From 5ed5be5c786683cd5ec86d9834afca88d965d5f0 Mon Sep 17 00:00:00 2001 > From: Nikita Karetnikov > Date: Wed, 25 Sep 2013 01:55:27 +0000 > Subject: [PATCH] guix package: Show which generation is the current one. > > * guix/scripts/package.scm (guix-package)[process-query]: Show that a > generation is the current one if the profile points to it. > * tests/guix-package.sh: Test it. Thanks, Ludo=E2=80=99.