diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2022-08-28 23:03:34 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2022-08-30 00:40:04 +0200 |
| commit | 9096bc28a30d48486efa13488ac4814b2ccd0fa2 (patch) | |
| tree | be6253e1b20278747aa54d79a000d292d9109bce /gnu/services.scm | |
| parent | eb52b240eb58627cc76a03244c45502c4ec3c50e (diff) | |
services: provenance: Use 'current-channels' to obtain provenance data.
Previously, build-time metadata from (guix config) would be ignored when
available--e.g., when running /run/current-system/profile/bin/guix.
This is a followup to 316fc2acbb112bfa572ae30f95a93bcd56621234.
* gnu/services.scm (provenance-entry): Use 'current-channels' instead of
'current-profile' + 'profile-channels'.
Diffstat (limited to 'gnu/services.scm')
| -rw-r--r-- | gnu/services.scm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gnu/services.scm b/gnu/services.scm index cc2540ee50d..2abef557d46 100644 --- a/gnu/services.scm +++ b/gnu/services.scm | |||
| @@ -482,11 +482,8 @@ configuration being used." | |||
| 482 | (define (provenance-entry config-file) | 482 | (define (provenance-entry config-file) |
| 483 | "Return system entries describing the operating system provenance: the | 483 | "Return system entries describing the operating system provenance: the |
| 484 | channels in use and CONFIG-FILE, if it is true." | 484 | channels in use and CONFIG-FILE, if it is true." |
| 485 | (define profile | ||
| 486 | (current-profile)) | ||
| 487 | |||
| 488 | (define channels | 485 | (define channels |
| 489 | (and=> profile profile-channels)) | 486 | (current-channels)) |
| 490 | 487 | ||
| 491 | (mbegin %store-monad | 488 | (mbegin %store-monad |
| 492 | (let ((config-file (cond ((string? config-file) | 489 | (let ((config-file (cond ((string? config-file) |
