diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-05-30 18:36:37 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-06-02 22:01:57 +0200 |
commit | b8fa86adfc01205f1d942af8cb57515eb3726c52 (patch) | |
tree | f959c65b288df1ccf2912045ccd318debd6eff41 /tests/guix-pack-relocatable.sh | |
parent | dec4b3aa18e24466841244c3e34b255201bbcc9e (diff) | |
download | patches-b8fa86adfc01205f1d942af8cb57515eb3726c52.tar patches-b8fa86adfc01205f1d942af8cb57515eb3726c52.tar.gz |
publish: '--compression' can be repeated.
This allows 'guix publish' to compress and advertise multiple
compression methods from which users can choose.
* guix/scripts/publish.scm (actual-compression): Rename to...
(actual-compressions): ... this. Expect REQUESTED to be a list, and
always return a list.
(%default-options): Remove 'compression.
(store-item->recutils): New procedure.
(narinfo-string): Change #:compression to #:compressions (plural).
Adjust accordingly.
(render-narinfo, render-narinfo/cached): Likewise.
(bake-narinfo+nar): Change #:compression to #:compressions.
[compressed-nar-size]: New procedure.
Call 'compress-nar' for each item returned by 'actual-compressions'.
Create a narinfo for each compression.
(effective-compression): New procedure.
(make-request-handler): Change #:compression to #:compressions.
Use 'effective-compression' to determine the applicable compression.
(guix-publish): Adjust handling of '--compression'.
Print a message for each compression that is enabled.
* tests/publish.scm ("/*.narinfo"): Adjust to new narinfo field
ordering.
("/*.narinfo with properly encoded '+' sign"): Likewise.
("/*.narinfo with lzip + gzip"): New test.
("with cache, lzip + gzip"): New test.
* doc/guix.texi (Invoking guix publish): Document it.
Diffstat (limited to 'tests/guix-pack-relocatable.sh')
0 files changed, 0 insertions, 0 deletions