publish: Fix narinfo rendering for already-compressed items.
authorLudovic Courtès <ludo@gnu.org>
Thu, 18 May 2017 19:19:49 +0000 (21:19 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 18 May 2017 19:35:35 +0000 (21:35 +0200)
commitffa5e0a6d2851832b7f0e6f943bc69e69e1bc8b0
treea07e8007349155a1d52051871fc1deed18511f02
parentacf82a1152431fddfee6828ff976157375eb143d
publish: Fix narinfo rendering for already-compressed items.

Fixes <http://bugs.gnu.org/26975>.
Reported by Mark H Weaver <mhw@netris.org>.

* guix/scripts/publish.scm (bake-narinfo+nar): Pass #f as the 2nd
argument to 'stat' and properly handle #f.
* tests/publish.scm (wait-for-file): New procedure.
("with cache"): Remove 'wait-for-file' procedure.
("with cache, uncompressed"): New test.
guix/scripts/publish.scm
tests/publish.scm