diff options
author | Christopher Baines <mail@cbaines.net> | 2021-03-15 15:05:08 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-03-17 20:41:10 +0000 |
commit | c37e3b92ad0334ba2fe7ee4e98631f0a4edeee21 (patch) | |
tree | f1b4c4c9946649d8c283031f99edecc0fa5b0774 /tests/scripts.scm | |
parent | 24f1ce9e71a4f2fc7370cefb42c04cb669397fcf (diff) | |
download | guix-patches-c37e3b92ad0334ba2fe7ee4e98631f0a4edeee21.tar guix-patches-c37e3b92ad0334ba2fe7ee4e98631f0a4edeee21.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 'tests/scripts.scm')
0 files changed, 0 insertions, 0 deletions