challenge: Use SRFI-71 instead of SRFI-11.
* guix/scripts/challenge.scm (port-sha256*, call-with-nar): Use SRFI-71.
This commit is contained in:
parent
d5cfca23e3
commit
c6903e156f
1 changed files with 4 additions and 6 deletions
|
@ -35,10 +35,10 @@
|
||||||
#:use-module (gcrypt hash)
|
#:use-module (gcrypt hash)
|
||||||
#:use-module (srfi srfi-1)
|
#:use-module (srfi srfi-1)
|
||||||
#:use-module (srfi srfi-9)
|
#:use-module (srfi srfi-9)
|
||||||
#:use-module (srfi srfi-11)
|
|
||||||
#:use-module (srfi srfi-26)
|
#:use-module (srfi srfi-26)
|
||||||
#:use-module (srfi srfi-34)
|
#:use-module (srfi srfi-34)
|
||||||
#:use-module (srfi srfi-37)
|
#:use-module (srfi srfi-37)
|
||||||
|
#:use-module (srfi srfi-71)
|
||||||
#:use-module (ice-9 match)
|
#:use-module (ice-9 match)
|
||||||
#:use-module (ice-9 vlist)
|
#:use-module (ice-9 vlist)
|
||||||
#:use-module (ice-9 format)
|
#:use-module (ice-9 format)
|
||||||
|
@ -196,7 +196,7 @@ taken since we do not import the archives."
|
||||||
|
|
||||||
(define (port-sha256* port size)
|
(define (port-sha256* port size)
|
||||||
;; Like 'port-sha256', but limited to SIZE bytes.
|
;; Like 'port-sha256', but limited to SIZE bytes.
|
||||||
(let-values (((out get) (open-sha256-port)))
|
(let ((out get (open-sha256-port)))
|
||||||
(dump-port* port out size)
|
(dump-port* port out size)
|
||||||
(close-port out)
|
(close-port out)
|
||||||
(get)))
|
(get)))
|
||||||
|
@ -251,10 +251,8 @@ taken since we do not import the archives."
|
||||||
(define (call-with-nar narinfo proc)
|
(define (call-with-nar narinfo proc)
|
||||||
"Call PROC with an input port from which it can read the nar pointed to by
|
"Call PROC with an input port from which it can read the nar pointed to by
|
||||||
NARINFO."
|
NARINFO."
|
||||||
(let*-values (((uri compression size)
|
(let* ((uri compression size (narinfo-best-uri narinfo))
|
||||||
(narinfo-best-uri narinfo))
|
(port actual-size (http-fetch uri)))
|
||||||
((port actual-size)
|
|
||||||
(http-fetch uri)))
|
|
||||||
(define reporter
|
(define reporter
|
||||||
(progress-reporter/file (narinfo-path narinfo)
|
(progress-reporter/file (narinfo-path narinfo)
|
||||||
(and size
|
(and size
|
||||||
|
|
Reference in a new issue