diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-05-20 22:15:54 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-05-25 00:00:28 +0200 |
commit | 872898f768ae6d3b41eb93c5e183624bd1d157ff (patch) | |
tree | d88d5ff215bedffeba951ddf35b8cc0e4489a253 /doc | |
parent | 8d1d56578aa95118650ed2197bfb7fac40f4218a (diff) | |
download | guix-872898f768ae6d3b41eb93c5e183624bd1d157ff.tar guix-872898f768ae6d3b41eb93c5e183624bd1d157ff.tar.gz |
channels: 'latest-channel-instances' guards against non-forward updates.
* guix/channels.scm (latest-channel-instance): Add #:starting-commit and
pass it to 'update-cached-checkout'. Return the commit relation as a
second value.
(ensure-forward-channel-update): New procedure.
(latest-channel-instances): Add #:current-channels and #:validate-pull.
[current-commit]: New procedure.
Pass #:starting-commit to 'latest-channel-instance'. When the returned
relation is true, call VALIDATE-PULL.
(latest-channel-derivation): Add #:current-channels and #:validate-pull.
Pass them to 'latest-channel-instances*'.
* tests/channels.scm ("latest-channel-instances #:validate-pull"): New
test.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions