diff options
author | Ludovic Courtès <ludo@gnu.org> | 2018-09-18 22:49:41 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-09-18 23:23:44 +0200 |
commit | 912adda316886cef5f3f870e53d607bf8d02222f (patch) | |
tree | 0ba99a83aff60a35aace510ad433d6960541c61b /guix/scripts/pull.scm | |
parent | cda08dd339112c78881e91597326498331b16dca (diff) |
describe: Work correctly on generation-less profiles.
Previously a command like:
$(readlink -f ~/.config/guix/current)/bin/guix describe
would succeed without printing anything.
* guix/scripts/describe.scm (display-profile-info): Don't call
'generation-file-name' when NUMBER is zero.
* guix/scripts/pull.scm (display-profile-content): Likewise.
Diffstat (limited to 'guix/scripts/pull.scm')
-rw-r--r-- | guix/scripts/pull.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/guix/scripts/pull.scm b/guix/scripts/pull.scm index 976e054a84..c0686f16bf 100644 --- a/guix/scripts/pull.scm +++ b/guix/scripts/pull.scm @@ -233,7 +233,9 @@ way and displaying details about the channel's source code." ;; Show most recently installed packages last. (reverse (manifest-entries - (profile-manifest (generation-file-name profile number)))))) + (profile-manifest (if (zero? number) + profile + (generation-file-name profile number))))))) (define (indented-string str indent) "Return STR with each newline preceded by IDENT spaces." |