diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-05-11 22:42:59 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-05-11 22:42:59 -0400 |
commit | b7cbca221f74e9e9ef43c228dca9fa9930babec5 (patch) | |
tree | 33d0c1b2ae9a09a6e50652f61cdb16c7ba5d9003 /guix/describe.scm | |
parent | c80627731bc100baa4b6c5d265df5465cee9498e (diff) | |
parent | fb5d04d36334784a5ac76c4a90de1e1376120885 (diff) | |
download | guix-patches-b7cbca221f74e9e9ef43c228dca9fa9930babec5.tar guix-patches-b7cbca221f74e9e9ef43c228dca9fa9930babec5.tar.gz |
Merge branch 'version-1.3.0'
Diffstat (limited to 'guix/describe.scm')
-rw-r--r-- | guix/describe.scm | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/guix/describe.scm b/guix/describe.scm index 0683ad8a27..711b7b4290 100644 --- a/guix/describe.scm +++ b/guix/describe.scm @@ -122,15 +122,24 @@ lives in, or the empty list if this is not applicable." (mlambda () "Return the list of channels currently available, including the 'guix' channel. Return the empty list if this information is missing." + (define (build-time-metadata) + (match (channel-metadata) + (#f '()) + (sexp (or (and=> (sexp->channel sexp 'guix) list) '())))) + (match (current-profile-entries) (() ;; As a fallback, if we're not running from a profile, use 'guix' ;; channel metadata from (guix config). - (match (channel-metadata) - (#f '()) - (sexp (or (and=> (sexp->channel sexp 'guix) list) '())))) + (build-time-metadata)) (entries - (filter-map manifest-entry-channel entries))))) + (match (filter-map manifest-entry-channel entries) + (() + ;; This profile lacks provenance metadata, so fall back to + ;; build-time metadata as returned by 'channel-metadata'. + (build-time-metadata)) + (lst + lst)))))) (define (package-path-entries) "Return two values: the list of package path entries to be added to the |