diff options
author | Christopher Baines <mail@cbaines.net> | 2021-03-15 15:05:08 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-03-16 22:54:22 +0000 |
commit | 9e008fd6e15eba4c73b575ca8897d9976ed0f28a (patch) | |
tree | 03518b26b507752a2431c3da300e8b5a47be828b /m4 | |
parent | 15423d38c57d04bc1bbc70c7bd79eaf8cf82d513 (diff) | |
download | guix-9e008fd6e15eba4c73b575ca8897d9976ed0f28a.tar guix-9e008fd6e15eba4c73b575ca8897d9976ed0f28a.tar.gz |
scripts: substitute: Add back some error handling.
In f50f5751fff4cfc6d5abba9681054569694b7a5c, the way fetch was called within
process-substitution was changed. As call-with-cached-connection actually
includes important error handling for the opening of a HTTP request, this
change removed some error handling. This commit adds that back.
Fixes <https://bugs.gnu.org/47157>.
* guix/scripts/substitute.scm (call-with-cached-connection): New procedure.
(with-cached-connection): New syntax rule.
(process-substitution): Retry once for some errors when making HTTP requests
to fetch substitutes.
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions