mirror of
git://git.savannah.gnu.org/guix/guix-cuirass.git
synced 2023-12-14 06:03:04 +01:00
specification: channel->sexp: Add introduction support.
* src/cuirass/specification.scm (channel->sexp): Add channel introduction support.
This commit is contained in:
parent
fc582f5b0e
commit
826e2df45e
|
@ -18,6 +18,9 @@
|
|||
|
||||
(define-module (cuirass specification)
|
||||
#:use-module (guix channels)
|
||||
#:use-module ((guix openpgp)
|
||||
#:select (openpgp-public-key-fingerprint
|
||||
openpgp-format-fingerprint))
|
||||
#:use-module (guix records)
|
||||
#:use-module (guix ui)
|
||||
#:use-module (guix utils)
|
||||
|
@ -91,12 +94,25 @@
|
|||
|
||||
(define (channel->sexp channel)
|
||||
"Return an sexp describing CHANNEL."
|
||||
`(repository
|
||||
(version 0)
|
||||
(url ,(channel-url channel))
|
||||
(branch ,(channel-branch channel))
|
||||
(commit ,(channel-commit channel))
|
||||
(name ,(channel-name channel))))
|
||||
(let ((intro (channel-introduction channel)))
|
||||
`(repository
|
||||
(version 0)
|
||||
(url ,(channel-url channel))
|
||||
(branch ,(channel-branch channel))
|
||||
(commit ,(channel-commit channel))
|
||||
(name ,(channel-name channel))
|
||||
,@(if intro
|
||||
`((introduction
|
||||
(channel-introduction
|
||||
(version 0)
|
||||
(commit
|
||||
,(channel-introduction-first-signed-commit
|
||||
intro))
|
||||
(signer
|
||||
,(openpgp-format-fingerprint
|
||||
(channel-introduction-first-commit-signer
|
||||
intro))))))
|
||||
'()))))
|
||||
|
||||
|
||||
;;;
|
||||
|
|
Loading…
Reference in a new issue