download: Use invoke instead of system*.

* guix/download.scm (url-fetch/tarbomb, url-fetch/zipbomb): Use invoke.
This commit is contained in:
Mark H Weaver 2018-03-16 03:40:00 -04:00
parent ad1656dc91
commit 20927c9331
No known key found for this signature in database
GPG key ID: 7CEF29847562C516

View file

@ -517,8 +517,8 @@ (define tar
(mkdir #$output)
(setenv "PATH" (string-append #$gzip "/bin"))
(chdir #$output)
(zero? (system* (string-append #$tar "/bin/tar")
"xf" #$drv)))
(invoke (string-append #$tar "/bin/tar")
"xf" #$drv))
#:local-build? #t)))
(define* (url-fetch/zipbomb url hash-algo hash
@ -546,8 +546,8 @@ (define unzip
#~(begin
(mkdir #$output)
(chdir #$output)
(zero? (system* (string-append #$unzip "/bin/unzip")
#$drv)))
(invoke (string-append #$unzip "/bin/unzip")
#$drv))
#:local-build? #t)))
(define* (download-to-store store url #:optional (name (basename url))