utils: Strip duplicates from search path.

* guix/build/utils.scm (search-path-as-list): Delete duplicate input
  directories before searching.
This commit is contained in:
Eric Bavier 2015-02-04 09:48:39 -06:00
parent ce7155d5dd
commit d5b3de6af2

View file

@ -323,7 +323,7 @@ (define* (search-path-as-list files input-dirs
(list file)
'())))))
files))
input-dirs))
(delete-duplicates input-dirs)))
(define (list->search-path-as-string lst separator)
(string-join lst separator))