publish: Produce a "FileSize" narinfo field when possible.
authorLudovic Courtès <ludo@gnu.org>
Mon, 1 May 2017 15:24:41 +0000 (17:24 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 1 May 2017 15:28:20 +0000 (17:28 +0200)
commitdff3189c7d5d95177ff592789e1bcb73a4adcc9e
tree897cb0f23c7b51a248ac9284883fafec81ed0dfa
parente93793059d4a15894e407525bdc33fd06e2b104a
publish: Produce a "FileSize" narinfo field when possible.

* guix/scripts/publish.scm (narinfo-string): Add #:file-size parameter.
Produce a "FileSize" field when COMPRESSION is eq? to '%no-compression'
or when FILE-SIZE is true.
(bake-narinfo+nar): Pass #:file-size.
* tests/publish.scm ("/*.narinfo")
("/*.narinfo with properly encoded '+' sign")
("with cache"): Check for "FileSize".
guix/scripts/publish.scm
tests/publish.scm