guix build: '--log-file' no longer returns several log files.

Fixes a regression introduced in
9353b199c1 whereby something like:

  guix build --log-file $(guix build -d guile)

would return two log files.  This led to a failure of 'tests/guix-build.sh'.

* guix/scripts/build.scm (guix-build): Filter out derivation file names
from ITEMS.
This commit is contained in:
Ludovic Courtès 2019-06-23 19:28:52 +02:00
parent 0f2d9c3290
commit 92359aed40
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 1 deletions

View File

@ -916,7 +916,8 @@ needed."
'())))
(items (filter-map (match-lambda
(('argument . (? store-path? file))
file)
(and (not (derivation-path? file))
file))
(_ #f))
opts))
(roots (filter-map (match-lambda