weather: Delete duplicate entries coming from '--manifest'.

* guix/scripts/weather.scm (load-manifest): Call 'delete-duplicates'.
This commit is contained in:
Ludovic Courtès 2020-04-14 15:19:51 +02:00
parent bab1f340b3
commit 1ae7a9251b
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -339,8 +339,9 @@ Report the availability of substitutes.\n"))
"Load the manifest from FILE and return the list of packages it refers to." "Load the manifest from FILE and return the list of packages it refers to."
(let* ((user-module (make-user-module '((guix profiles) (gnu)))) (let* ((user-module (make-user-module '((guix profiles) (gnu))))
(manifest (load* file user-module))) (manifest (load* file user-module)))
(map manifest-entry-item (delete-duplicates (map manifest-entry-item
(manifest-transitive-entries manifest)))) (manifest-transitive-entries manifest))
eq?)))
;;; ;;;