Skip to content
Snippets Groups Projects
Unverified Commit 9e3e9b69 authored by Mathieu Othacehe's avatar Mathieu Othacehe
Browse files

Use our own sexp->channel procedure.

The Guix version of sexp->channel doesn't support the branch field.

* src/cuirass/specification.scm (sexp->channel): New procedure.
* src/cuirass/database.scm (db-get-specifications): Use it.
parent 94a7f870
No related branches found
No related tags found
No related merge requests found
......@@ -449,7 +449,7 @@ priority, systems FROM Specifications ORDER BY name ASC;")))
(name name)
(build (with-input-from-string build read))
(channels
(map sexp->channel
(map sexp->channel*
(with-input-from-string channels read)))
(build-outputs
(map sexp->build-output
......
......@@ -36,6 +36,7 @@
sexp->build-output
channel->sexp
sexp->channel*
specification
specification?
......@@ -114,6 +115,27 @@
intro))))))
'()))))
(define (sexp->channel* sexp)
"Return the channel corresponding to SEXP."
(match sexp
(('repository ('version 0)
('url url)
('branch branch)
('commit commit)
('name name)
rest ...)
(channel (name name)
(url url)
(branch branch)
(commit commit)
(introduction
(match (assq 'introduction rest)
(#f #f)
(('introduction intro)
(sexp->channel-introduction intro))))))
(_ #f)))
;;;
;;; Specification record.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment