challenge: Be defensive in the size passed to the progress reporter.
authorLudovic Courtès <ludo@gnu.org>
Wed, 12 May 2021 21:38:13 +0000 (23:38 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 12 May 2021 22:19:58 +0000 (00:19 +0200)
commit3cde5231aa78aa5e31b27888cd78ee0b250a7a1c
treeddddd00822c4e038281a26b2b365ad6a9df52e5e
parent0aef94e7bcbd272720f14c5343f74da5201ef90a
challenge: Be defensive in the size passed to the progress reporter.

Possibly fixes <https://bugs.gnu.org/48045>.
Reported by Bone Baboon <bone.baboon@disroot.org>.

* guix/scripts/challenge.scm (call-with-nar): Rename second value
returned by 'http-fetch' to match reality.  Change second argument to
'progress-reporter/file'.
guix/scripts/challenge.scm