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.master
parent
973496100d
commit
4d13926064
|
@ -599,7 +599,12 @@ to obtain the Guix package name corresponding to the upstream name."
|
|||
(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)))
|
||||
|
|
Reference in New Issue