[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: ci: Restore license handling.
From: |
guix-commits |
Subject: |
branch master updated: ci: Restore license handling. |
Date: |
Mon, 02 Nov 2020 15:02:57 -0500 |
This is an automated email from the git hooks/post-receive script.
mothacehe pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new b5f2a03 ci: Restore license handling.
b5f2a03 is described below
commit b5f2a035f93519b27f46673e6d76665767a1fbd9
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Mon Nov 2 20:58:39 2020 +0100
ci: Restore license handling.
This is a follow-up of 7c02eb6c and 44daec7f. Restore the initial behaviour.
* gnu/ci.scm (package->alist): Restore license handling.
---
gnu/ci.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/ci.scm b/gnu/ci.scm
index 1d16805..bf9952a 100644
--- a/gnu/ci.scm
+++ b/gnu/ci.scm
@@ -89,7 +89,16 @@
(system . ,(derivation-system drv))
(description . ,(package-synopsis package))
(long-description . ,(package-description package))
- (license . ,(and=> (package-license package) license-name))
+
+ ;; XXX: Hydra ignores licenses that are not a <license> structure or a
+ ;; list thereof.
+ (license . ,(let loop ((license (package-license package)))
+ (match license
+ ((? license?)
+ (license-name license))
+ ((lst ...)
+ (map loop license)))))
+
(home-page . ,(package-home-page package))
(maintainers . ("bug-guix@gnu.org"))
(max-silent-time . ,(or (assoc-ref (package-properties package)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: ci: Restore license handling.,
guix-commits <=