build: go-build-system: Re-ident.
* guix/build/go-build-system.scm (unpack): Fix indentation.
This commit is contained in:
parent
85c1d20fa6
commit
b5f0528354
|
@ -161,12 +161,12 @@ unpacking."
|
||||||
(let ((dest (string-append (getenv "GOPATH") "/src/" unpack-path)))
|
(let ((dest (string-append (getenv "GOPATH") "/src/" unpack-path)))
|
||||||
(mkdir-p dest)
|
(mkdir-p dest)
|
||||||
(if (file-is-directory? source)
|
(if (file-is-directory? source)
|
||||||
(begin
|
(begin
|
||||||
(copy-recursively source dest #:keep-mtime? #t)
|
(copy-recursively source dest #:keep-mtime? #t)
|
||||||
#t)
|
#t)
|
||||||
(if (string-suffix? ".zip" source)
|
(if (string-suffix? ".zip" source)
|
||||||
(invoke "unzip" "-d" dest source)
|
(invoke "unzip" "-d" dest source)
|
||||||
(invoke "tar" "-C" dest "-xvf" source)))))
|
(invoke "tar" "-C" dest "-xvf" source)))))
|
||||||
|
|
||||||
(define (go-package? name)
|
(define (go-package? name)
|
||||||
(string-prefix? "go-" name))
|
(string-prefix? "go-" name))
|
||||||
|
|
Loading…
Reference in New Issue