describe: 'current-channel-entries' ignores non-channel profile entries.
authorLudovic Courtès <ludo@gnu.org>
Sun, 13 Jun 2021 10:31:02 +0000 (12:31 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 13 Jun 2021 21:57:44 +0000 (23:57 +0200)
commitfb3927486ac163d11e3af7ca7c4fffcc4be06809
tree1c688e159efa8a10afae7abb0bfc09beae5d46fa
parentbd02e50a02ceed914135dba1e69e4457e489cf86
describe: 'current-channel-entries' ignores non-channel profile entries.

Fixes <https://bugs.gnu.org/48778>.

A side effect of c47f3fc13562d82edfd2d47342574154c452843a is that
(@ (guix describe) current-profile) provides the correct answer when the
'guix' package is installed in a profile.  Consequently, the 'guix'
package installed in /run/current-system/profile (for instance) would
end up loading all the .scm files in that directory.

* guix/describe.scm (current-channel-entries): Remove ENTRY if it lacks
the 'source' property.
guix/describe.scm