[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/07: describe: 'current-channel-entries' ignores non-channel profile e
From: |
guix-commits |
Subject: |
01/07: describe: 'current-channel-entries' ignores non-channel profile entries. |
Date: |
Sun, 13 Jun 2021 17:59:28 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit fb3927486ac163d11e3af7ca7c4fffcc4be06809
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Jun 13 12:31:02 2021 +0200
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 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/guix/describe.scm b/guix/describe.scm
index 711b7b4..65cd790 100644
--- a/guix/describe.scm
+++ b/guix/describe.scm
@@ -115,7 +115,11 @@ lives in, or the empty list if this is not applicable."
"Return manifest entries corresponding to extra channels--i.e., not the
'guix' channel."
(remove (lambda (entry)
- (string=? (manifest-entry-name entry) "guix"))
+ (or (string=? (manifest-entry-name entry) "guix")
+
+ ;; If ENTRY lacks the 'source' property, it's not an entry
+ ;; from 'guix pull'. See <https://bugs.gnu.org/48778>.
+ (not (assq 'source (manifest-entry-properties entry)))))
(current-profile-entries))))
(define current-channels
- branch master updated (bd02e50 -> 0294cfc), guix-commits, 2021/06/13
- 01/07: describe: 'current-channel-entries' ignores non-channel profile entries.,
guix-commits <=
- 04/07: gnu: proof-general: Update to 4.4-0.bc86736., guix-commits, 2021/06/13
- 06/07: gnu: prosody: Update to 0.11.9., guix-commits, 2021/06/13
- 02/07: gnu: goaccess: Update to 1.5., guix-commits, 2021/06/13
- 03/07: gnu: ristretto: Update to 0.11.0., guix-commits, 2021/06/13
- 05/07: doc, gnu, guix: Fix typos., guix-commits, 2021/06/13
- 07/07: guix package: Do not say "nothing to do" upon rollback & co., guix-commits, 2021/06/13