mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
union: Delete duplicates when passed the same input several times.
* guix/build/union.scm (union-build): Prepend "." to the result of
`union-tree', to match the expectations of `delete-duplicate-leaves'.
Don't do mkdir when SUBDIR is ".".
* tests/union.scm ("union-build"): Keep duplicates in %BOOTSTRAP-INPUTS.
This commit is contained in:
@@ -94,9 +94,10 @@
|
||||
(let* ((inputs (map (match-lambda
|
||||
((name package)
|
||||
`(,name ,(package-derivation %store package))))
|
||||
(delete-duplicates %bootstrap-inputs
|
||||
(lambda (i1 i2)
|
||||
(eq? (second i1) (second i2))))))
|
||||
|
||||
;; Purposefully leave duplicate entries.
|
||||
(append %bootstrap-inputs
|
||||
(take %bootstrap-inputs 3))))
|
||||
(builder `(begin
|
||||
(use-modules (guix build union))
|
||||
(union-build (assoc-ref %outputs "out")
|
||||
|
||||
Reference in New Issue
Block a user