pull: Adjust to 'derivation' API change.
Fixes <http://bugs.gnu.org/15428>. Reported by Cyrill Schenkel <cyrill.schenkel@gmail.com>. * guix/scripts/pull.scm (guix-pull): 'unpack' returns a single value.
This commit is contained in:
parent
0352532e6a
commit
3b627eac48
|
@ -29,7 +29,6 @@
|
|||
#:use-module (gnu packages compression)
|
||||
#:use-module (gnu packages gnupg)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (srfi srfi-11)
|
||||
#:use-module (srfi srfi-37)
|
||||
#:export (guix-pull))
|
||||
|
||||
|
@ -200,13 +199,9 @@ Download and deploy the latest version of Guix.\n"))
|
|||
(if (assoc-ref opts 'verbose?)
|
||||
(current-error-port)
|
||||
(%make-void-port "w"))))
|
||||
(let*-values (((config-dir)
|
||||
(config-directory))
|
||||
((source drv)
|
||||
(unpack store tarball))
|
||||
((source-dir)
|
||||
(derivation-output-path
|
||||
(assoc-ref (derivation-outputs drv) "out"))))
|
||||
(let* ((config-dir (config-directory))
|
||||
(source (unpack store tarball))
|
||||
(source-dir (derivation->output-path source)))
|
||||
(if (show-what-to-build store (list source))
|
||||
(if (build-derivations store (list source))
|
||||
(let ((latest (string-append config-dir "/latest")))
|
||||
|
|
Loading…
Reference in New Issue