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

View file

@ -108,8 +108,7 @@ (define (display-profile-info profile fmt)
"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