From da34a19f3af425b5596c09fb388f0a2ee04d4bba Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 7 Sep 2018 14:19:42 +0200 Subject: guix describe: Display information about the current generation. * guix/scripts/describe.scm (display-profile-info)[number]: Use the current generation number instead of the last generation number. --- guix/scripts/describe.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'guix/scripts/describe.scm') diff --git a/guix/scripts/describe.scm b/guix/scripts/describe.scm index 46feea2940..fdff07d0e3 100644 --- a/guix/scripts/describe.scm +++ b/guix/scripts/describe.scm @@ -108,8 +108,7 @@ within a Git checkout." "Display information about PROFILE, a profile as created by (guix channels), in the format specified by FMT." (define number - (match (profile-generations profile) - ((_ ... last) last))) + (generation-number profile)) (match fmt ('human -- cgit v1.2.3