me
/
guix
Archived
1
0
Fork 0

Revert "reconfigure: Use 'current-channels' to obtain provenance data."

This fixes <https://issues.guix.gnu.org/57480>.

This reverts commit b08439809f.
master
宋文武 2022-08-30 14:43:21 +08:00
parent 9b8507df11
commit e214e87cc5
No known key found for this signature in database
GPG Key ID: D415BF253B515976
1 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,7 @@
#:use-module (guix monads)
#:use-module (guix store)
#:use-module ((guix self) #:select (make-config.scm))
#:autoload (guix describe) (current-channels)
#:autoload (guix describe) (current-profile)
#:use-module (guix channels)
#:autoload (guix git) (update-cached-checkout)
#:use-module (guix i18n)
@ -372,7 +372,8 @@ 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
(current-channels))
(or (and=> (current-profile) profile-channels)
'()))
(when (null? current-channels)
(warning (G_ "cannot determine provenance for current system~%")))