me
/
guix
Archived
1
0
Fork 0

scripts: challenge: Fix regression.

This is a follow-up of 3cde5231aa that fixes the
challenge test.

When dealing with uncompressed NAR, the file size is false. Propagate it to
progress-reporter/file as it used to be the case.

* guix/scripts/challenge.scm (call-with-nar): Accept false size.
master
Mathieu Othacehe 2021-05-20 11:44:35 +02:00
parent 7d3ad4c256
commit 0471024acc
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 2 additions and 1 deletions

View File

@ -257,7 +257,8 @@ NARINFO."
(http-fetch uri)))
(define reporter
(progress-reporter/file (narinfo-path narinfo)
(max size (or actual-size 0)) ;defensive
(and size
(max size (or actual-size 0))) ;defensive
#:abbreviation (const (uri-host uri))))
(define result