substitute-binary: Avoid consing 'regexp-exec' arguments.
* guix/scripts/substitute-binary.scm (regexp-exec): Change formals to (rx str . rest).
This commit is contained in:
parent
c6e9485924
commit
57832f2ce7
1 changed files with 2 additions and 2 deletions
|
|
@ -99,9 +99,9 @@ disabled!~%"))
|
||||||
(set! regexp-exec
|
(set! regexp-exec
|
||||||
(let ((real regexp-exec)
|
(let ((real regexp-exec)
|
||||||
(lock (make-mutex)))
|
(lock (make-mutex)))
|
||||||
(lambda args
|
(lambda (rx str . rest)
|
||||||
(with-mutex lock
|
(with-mutex lock
|
||||||
(apply real args)))))
|
(apply real rx str rest)))))
|
||||||
|
|
||||||
(define fields->alist
|
(define fields->alist
|
||||||
;; The narinfo format is really just like recutils.
|
;; The narinfo format is really just like recutils.
|
||||||
|
|
|
||||||
Reference in a new issue