diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-06-03 23:00:42 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-06-03 23:18:47 +0200 |
commit | 69962ab7a8e07af77a2eb466be39615d139d5cf0 (patch) | |
tree | 0170970c0fd544268dada62649ea770a4408e393 /guix/channels.scm | |
parent | 1b5ee3bdaacf665ad1e7c6142122389fd7033ea2 (diff) | |
download | gnu-guix-69962ab7a8e07af77a2eb466be39615d139d5cf0.tar gnu-guix-69962ab7a8e07af77a2eb466be39615d139d5cf0.tar.gz |
deprecation: Use the 'warning' procedure for diagnostics.
Until now, (guix deprecation) had its own warning mechanism, which was
inconsistent (it did not use colors, etc.)
* guix/deprecation.scm (deprecation-warning-port): Remove
(source-properties->location-string): Remove.
(warn-about-deprecation): Use 'warning' instead of 'format'.
(define-deprecated, define-deprecated/alias): Adjust docstring.
* guix/channels.scm (build-from-source): Refer to 'guix-warning-port'
instead of 'deprecation-warning-port'.
Diffstat (limited to 'guix/channels.scm')
-rw-r--r-- | guix/channels.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/channels.scm b/guix/channels.scm index e93879e1b4..e7278c6060 100644 --- a/guix/channels.scm +++ b/guix/channels.scm @@ -27,7 +27,7 @@ #:use-module (guix profiles) #:use-module (guix derivations) #:use-module (guix combinators) - #:use-module (guix deprecation) + #:use-module (guix diagnostics) #:use-module (guix store) #:use-module (guix i18n) #:use-module ((guix utils) @@ -280,7 +280,7 @@ package modules under SOURCE using CORE, an instance of Guix." ;; 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 + (parameterize ((guix-warning-port (%make-void-port "w"))) (primitive-load script)))))) ;; BUILD must be a monadic procedure of at least one argument: the |