mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
channels: Turn off deprecation warnings when loading 'build-self.scm'.
* guix/channels.scm (build-from-source): Parameterize DEPRECATION-WARNING-PORT when loading SCRIPT.
This commit is contained in:
parent
ea6fb108f6
commit
3a8c4860fb
1 changed files with 7 additions and 1 deletions
|
@ -27,6 +27,7 @@ (define-module (guix channels)
|
|||
#:use-module (guix profiles)
|
||||
#:use-module (guix derivations)
|
||||
#:use-module (guix combinators)
|
||||
#:use-module (guix deprecation)
|
||||
#:use-module (guix store)
|
||||
#:use-module (guix i18n)
|
||||
#:use-module ((guix utils)
|
||||
|
@ -275,7 +276,12 @@ (define script
|
|||
(if (file-exists? script)
|
||||
(let ((build (save-module-excursion
|
||||
(lambda ()
|
||||
(primitive-load script)))))
|
||||
;; Disable deprecation warnings; it's OK for SCRIPT to
|
||||
;; use deprecated APIs and the user doesn't have to know
|
||||
;; about it.
|
||||
(parameterize ((deprecation-warning-port
|
||||
(%make-void-port "w")))
|
||||
(primitive-load script))))))
|
||||
;; BUILD must be a monadic procedure of at least one argument: the
|
||||
;; source tree.
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue