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.
This commit is contained in:
Ludovic Courtès 2018-09-07 14:19:42 +02:00
parent 2b73d82830
commit da34a19f3a
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 1 additions and 2 deletions

View File

@ -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