mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
reconfigure: Use 'current-channels' to obtain provenance data.
This reinstates a modified version ofb08439809f
, which contained a thinko. 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 to316fc2acbb
. * guix/scripts/system/reconfigure.scm (check-forward-update): Use 'current-channels' rather than 'current-profile' + 'profile-channels'.
This commit is contained in:
parent
36445e4d96
commit
270e1b9e1e
1 changed files with 1 additions and 3 deletions
|
@ -34,7 +34,6 @@ (define-module (guix scripts system reconfigure)
|
|||
#:use-module (guix monads)
|
||||
#:use-module (guix store)
|
||||
#:use-module ((guix self) #:select (make-config.scm))
|
||||
#:autoload (guix describe) (current-profile)
|
||||
#:use-module (guix channels)
|
||||
#:autoload (guix git) (update-cached-checkout)
|
||||
#:use-module (guix i18n)
|
||||
|
@ -372,8 +371,7 @@ (define* (check-forward-update #:optional
|
|||
'guix system describe' by default) and the target commit (as returned by 'guix
|
||||
describe')."
|
||||
(define new
|
||||
(or (and=> (current-profile) profile-channels)
|
||||
'()))
|
||||
((@ (guix describe) current-channels)))
|
||||
|
||||
(when (null? current-channels)
|
||||
(warning (G_ "cannot determine provenance for current system~%")))
|
||||
|
|
Loading…
Reference in a new issue