import/utils: recursive-import: Pass on lookup-node's version argument.
* guix/import/utils.scm (recursive-import)<lookup-node>: Replace the #:VERSION keyword from RECURSIVE-IMPORT's arguments with the value of VERSION passed to LOOKUP-NODE.
This commit is contained in:
parent
973496100d
commit
4d13926064
|
@ -599,7 +599,12 @@ (define (exists? name version)
|
|||
(not (null? (find-packages-by-name (guix-name name) version))))
|
||||
|
||||
(define (lookup-node name version)
|
||||
(let* ((package dependencies (apply repo->guix-package (cons name rest)))
|
||||
(let* ((pre post (break (cut eq? #:version <>) rest))
|
||||
(post* (match post
|
||||
((#:version v . more) more)
|
||||
(_ post)))
|
||||
(args (append pre (list #:version version) post*))
|
||||
(package dependencies (apply repo->guix-package (cons* name args)))
|
||||
(normalized-deps (map (match-lambda
|
||||
((name version) (list name version))
|
||||
(name (list name #f))) dependencies)))
|
||||
|
|
Loading…
Reference in a new issue