channels: Add support for a news file.
authorLudovic Courtès <ludo@gnu.org>
Sat, 14 Sep 2019 21:16:54 +0000 (23:16 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 23 Sep 2019 08:38:44 +0000 (10:38 +0200)
commit8ba7fd3cd6962f1c1aaaa5f71eed7f9222094f25
tree55b4dd25f2b16a9786f08e331b743f4289ccb053
parent873f6f1334ab06a69e768a8aea0054404237542f
channels: Add support for a news file.

* guix/channels.scm (<channel-metadata>)[news-file]: New field.
(read-channel-metadata): Set the 'news-file' field.
(read-channel-metadata-from-source): Likewise.
(<channel-news>, <channel-news-entry>): New record types.
(sexp->channel-news-entry, read-channel-news)
(channel-news-for-commit): New procedures.
* guix/tests/git.scm (populate-git-repository): For 'add', allow
CONTENTS to be a procedure.
* tests/channels.scm ("channel-news, no news")
("channel-news, one entry"): New tests.
* doc/guix.texi (Channels): Document it.
doc/guix.texi
guix/channels.scm
guix/tests/git.scm
tests/channels.scm