Ludovic Courtès ce5d9ec875
channels: Always provide a <channel-metadata> record.
This simplifies the code since one no longer needs to think about
whether '.guix-channel' was present.

* guix/channels.scm (read-channel-metadata): Always pass a string as the
first argument to 'channel-metadata'.
(read-channel-metadata-from-source): Always return a <channel-metadata>
record.
(channel-instance-dependencies): Remove now unneeded 'match'.
(standard-module-derivation): Assume DIRECTORY is never #f and contains
a leading slash.
* tests/channels.scm (channel-metadata-directory)
(channel-metadata-dependencies): New procedures.
("channel-instance-metadata returns #f if .guix-channel does not
exist"): Remove.
("channel-instance-metadata returns default if .guix-channel does not
exist"): New test.
(make-instance): Use 'write' instead of 'display' when creating
'.guix-channel'.
(instance--no-deps): Remove dependencies.
(instance--sub-directory): New variable.
("channel-instance-metadata and default dependencies")
("channel-instance-metadata and directory"): New tests.
("latest-channel-instances excludes duplicate channel dependencies"):
Expect 'channel-commit' to return a string and adjust accordingly.
2019-07-19 11:53:47 +02:00
..
2017-07-21 17:03:24 +02:00
2019-05-09 00:22:37 -04:00
2019-04-14 23:40:52 +02:00
2017-01-28 18:55:20 +01:00
2019-05-06 23:21:33 +02:00
2018-08-26 01:47:40 +02:00
2019-06-03 23:18:47 +02:00
2018-09-25 18:45:50 +02:00
2017-11-08 22:31:58 +01:00
2018-06-01 15:21:28 +02:00
2019-03-13 23:12:43 +01:00
2019-06-05 23:10:37 +02:00
2018-09-04 17:25:11 +02:00
2019-07-04 18:05:02 +02:00
2019-07-16 23:00:10 +02:00
2015-01-11 23:50:01 +01:00