[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/11: upstream: Use 'warning' instead of 'format'.
From: |
guix-commits |
Subject: |
08/11: upstream: Use 'warning' instead of 'format'. |
Date: |
Mon, 20 Jul 2020 17:26:12 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 1c26219f94b388a35f0ae93060806319958906ef
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Jul 20 21:16:17 2020 +0200
upstream: Use 'warning' instead of 'format'.
* guix/upstream.scm (update-package-source): Use 'warning' instead of
'format'.
---
guix/upstream.scm | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/guix/upstream.scm b/guix/upstream.scm
index ff33c53..6a57bad 100644
--- a/guix/upstream.scm
+++ b/guix/upstream.scm
@@ -26,6 +26,7 @@
#:select (download-to-store url-fetch))
#:use-module (guix gnupg)
#:use-module (guix packages)
+ #:use-module (guix diagnostics)
#:use-module (guix ui)
#:use-module (guix base32)
#:use-module (guix gexp)
@@ -477,10 +478,8 @@ new version string if an update was made, and #f
otherwise."
(warning (G_ "~a: could not locate source file")
(location-file loc))
#f)))
- (begin
- (format (current-error-port)
- (G_ "~a: ~a: no `version' field in source; skipping~%")
- (location->string (package-location package))
- name)))))
+ (warning (package-location package)
+ (G_ "~a: no `version' field in source; skipping~%")
+ name))))
;;; upstream.scm ends here
- 07/11: download: Add Savannah mirror., (continued)
- 07/11: download: Add Savannah mirror., guix-commits, 2020/07/20
- 10/11: json: Re-export 'define-json-mapping' from (json) when available., guix-commits, 2020/07/20
- 09/11: gnu-maintenance: 'kernel.org' and 'savannah' updaters rewrite URLs., guix-commits, 2020/07/20
- 01/11: gnu: guile-ssh: Update to 0.13.0., guix-commits, 2020/07/20
- 11/11: gnu: python-aionotify: Fix test cases with Python 3.8., guix-commits, 2020/07/20
- 03/11: pack: 'self-contained-tarball' runs derivation in a UTF-8local., guix-commits, 2020/07/20
- 02/11: ssh: Speed up RPCs by using #:nodelay., guix-commits, 2020/07/20
- 05/11: gnu-maintenance: 'latest-html-release' honors #:file->signature., guix-commits, 2020/07/20
- 04/11: pack: Build the store database under a UTF-8 locale., guix-commits, 2020/07/20
- 06/11: gnu-maintenance: Add 'savannah' updater., guix-commits, 2020/07/20
- 08/11: upstream: Use 'warning' instead of 'format'.,
guix-commits <=