mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 15:22:18 -05:00
download: Use invoke instead of system*.
* guix/download.scm (url-fetch/tarbomb, url-fetch/zipbomb): Use invoke.
This commit is contained in:
parent
ad1656dc91
commit
20927c9331
1 changed files with 4 additions and 4 deletions
|
@ -517,8 +517,8 @@ (define tar
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(setenv "PATH" (string-append #$gzip "/bin"))
|
(setenv "PATH" (string-append #$gzip "/bin"))
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
(zero? (system* (string-append #$tar "/bin/tar")
|
(invoke (string-append #$tar "/bin/tar")
|
||||||
"xf" #$drv)))
|
"xf" #$drv))
|
||||||
#:local-build? #t)))
|
#:local-build? #t)))
|
||||||
|
|
||||||
(define* (url-fetch/zipbomb url hash-algo hash
|
(define* (url-fetch/zipbomb url hash-algo hash
|
||||||
|
@ -546,8 +546,8 @@ (define unzip
|
||||||
#~(begin
|
#~(begin
|
||||||
(mkdir #$output)
|
(mkdir #$output)
|
||||||
(chdir #$output)
|
(chdir #$output)
|
||||||
(zero? (system* (string-append #$unzip "/bin/unzip")
|
(invoke (string-append #$unzip "/bin/unzip")
|
||||||
#$drv)))
|
#$drv))
|
||||||
#:local-build? #t)))
|
#:local-build? #t)))
|
||||||
|
|
||||||
(define* (download-to-store store url #:optional (name (basename url))
|
(define* (download-to-store store url #:optional (name (basename url))
|
||||||
|
|
Loading…
Reference in a new issue