mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-23 21:17:11 -05:00
file-systems: Avoid load-time warnings when attempting to load (guix store).
This makes sure warnings like "incompatible bytecode version" don't go through when looking for (guix store). * gnu/system/file-systems.scm (%store-prefix): Parameterize 'current-warning-port' around 'resolve-module' call.
This commit is contained in:
parent
774f8804ba
commit
eaebc7f2b7
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2013-2021 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2013-2022 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2020 Google LLC
|
||||
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
|
||||
;;; Copyright © 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
|
@ -272,7 +272,8 @@ (define (%store-prefix)
|
|||
;; Note: If we have (guix store database) in the search path and we do *not*
|
||||
;; have (guix store) proper, 'resolve-module' returns an empty (guix store)
|
||||
;; with one sub-module.
|
||||
(cond ((and=> (resolve-module '(guix store) #:ensure #f)
|
||||
(cond ((and=> (parameterize ((current-warning-port (%make-void-port "w0")))
|
||||
(resolve-module '(guix store) #:ensure #f))
|
||||
(lambda (store)
|
||||
(module-variable store '%store-prefix)))
|
||||
=>
|
||||
|
|
Loading…
Reference in a new issue