download: Use invoke instead of system*.
authorMark H Weaver <mhw@netris.org>
Fri, 16 Mar 2018 07:40:00 +0000 (03:40 -0400)
committerMark H Weaver <mhw@netris.org>
Fri, 16 Mar 2018 09:02:01 +0000 (05:02 -0400)
* guix/download.scm (url-fetch/tarbomb, url-fetch/zipbomb): Use invoke.

guix/download.scm

index 55da2c1..50aa78f 100644 (file)
@@ -517,8 +517,8 @@ own.  This helper makes it easier to deal with \"tar bombs\"."
                           (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 @@ own.  This helper makes it easier to deal with \"zip bombs\"."
                       #~(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))