[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: weather: '--coverage' filters out non-package objects.
From: |
guix-commits |
Subject: |
02/06: weather: '--coverage' filters out non-package objects. |
Date: |
Fri, 13 Mar 2020 12:34:07 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit a0feabdfdb5b0949ac16fc8280bbabe157cbd084
Author: Ludovic Courtès <address@hidden>
AuthorDate: Fri Mar 13 11:32:35 2020 +0100
weather: '--coverage' filters out non-package objects.
This is a followup to d37b5a1b58824dafbe6f32b1c183661c147c660c.
* guix/scripts/weather.scm (guix-weather): Filter PACKAGES passed to
'report-package-coverage'.
---
guix/scripts/weather.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/guix/scripts/weather.scm b/guix/scripts/weather.scm
index 913c849..a9e0cba 100644
--- a/guix/scripts/weather.scm
+++ b/guix/scripts/weather.scm
@@ -552,7 +552,11 @@ SERVER. Display information for packages with at least
THRESHOLD dependents."
(match (assoc-ref opts 'coverage)
(#f #f)
(threshold
- (report-package-coverage server packages systems
+ ;; PACKAGES may include non-package objects coming from a
+ ;; manifest. Filter them out.
+ (report-package-coverage server
+ (filter package? packages)
+ systems
#:threshold threshold)))
(= 1 coverage))
- branch master updated (10b99dd -> f292c50), guix-commits, 2020/03/13
- 01/06: weather: Exit with non-zero when coverage is below 100%., guix-commits, 2020/03/13
- 02/06: weather: '--coverage' filters out non-package objects.,
guix-commits <=
- 03/06: pack: Factorize 'mksquashfs' invocations., guix-commits, 2020/03/13
- 05/06: pack: Do not create a squashfs "recovery file"., guix-commits, 2020/03/13
- 04/06: pack: Make bit-reproducible squashfs images., guix-commits, 2020/03/13
- 06/06: maint: Add 'etc/release-manifest.scm'., guix-commits, 2020/03/13