diff options
author | Ludovic Courtès <ludo@gnu.org> | 2024-03-19 12:56:49 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-03-19 17:02:14 +0100 |
commit | c90a4e8dcd6ac650392ffcc039273baf145aa3cc (patch) | |
tree | 5508ad48980a4477dd4236504b63cb5bcc70470e /tests/offload.scm | |
parent | 06baf4d6ba187e4f56f15692b6013cf1c89df7f1 (diff) | |
download | guix-c90a4e8dcd6ac650392ffcc039273baf145aa3cc.tar.gz guix-c90a4e8dcd6ac650392ffcc039273baf145aa3cc.zip |
describe: Try harder to find the ‘guix pull’ profile.
Fixes <https://issues.guix.gnu.org/66705>.
The strategy used by ‘current-profile’ so far would fail to find the
right profile (the one created by ‘guix pull’ or ‘guix time-machine’) in
cases where said profile is itself included in another profile. This
happens, for instance, when running ‘guix shell -CW -- guix describe’,
which, as a result, would display nothing but the ‘guix’ channel.
This patch fixes that by having ‘current-profile’ not just check for the
presence of a ‘manifest’ file but also parse it to determine whether
it’s a ‘guix pull’ kind of manifest.
* guix/describe.scm (find-profile): New procedure.
(current-profile): Adjust to use it.
Change-Id: I9194f54ce1496a6591e247c76203f497f28c330b
Diffstat (limited to 'tests/offload.scm')
0 files changed, 0 insertions, 0 deletions