Nikita Karetnikov <nik...@karetnikov.org> skribis: >> I’m 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’s called ‘generation-number’.
Oh, OK. > What do you think about this patch? Can I push it to ‘master’? Yes! > From 5ed5be5c786683cd5ec86d9834afca88d965d5f0 Mon Sep 17 00:00:00 2001 > From: Nikita Karetnikov <nik...@karetnikov.org> > 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’.