reconfigure: 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 316fc2acbb
.
* guix/scripts/system/reconfigure.scm (check-forward-update): Use
'current-channels' rather than 'current-profile' + 'profile-channels'.
master
parent
9096bc28a3
commit
b08439809f
|
@ -34,7 +34,7 @@
|
|||
#:use-module (guix monads)
|
||||
#:use-module (guix store)
|
||||
#:use-module ((guix self) #:select (make-config.scm))
|
||||
#:autoload (guix describe) (current-profile)
|
||||
#:autoload (guix describe) (current-channels)
|
||||
#:use-module (guix channels)
|
||||
#:autoload (guix git) (update-cached-checkout)
|
||||
#:use-module (guix i18n)
|
||||
|
@ -372,8 +372,7 @@ currently-deployed commit (from CURRENT-CHANNELS, which is as returned by
|
|||
'guix system describe' by default) and the target commit (as returned by 'guix
|
||||
describe')."
|
||||
(define new
|
||||
(or (and=> (current-profile) profile-channels)
|
||||
'()))
|
||||
(current-channels))
|
||||
|
||||
(when (null? current-channels)
|
||||
(warning (G_ "cannot determine provenance for current system~%")))
|
||||
|
|
Reference in New Issue