From 1ae7a9251b282a5f5e73a754dbc3b8bd4fe1da74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 14 Apr 2020 15:19:51 +0200 Subject: weather: Delete duplicate entries coming from '--manifest'. * guix/scripts/weather.scm (load-manifest): Call 'delete-duplicates'. --- guix/scripts/weather.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/guix/scripts/weather.scm b/guix/scripts/weather.scm index eb76771452..475d989357 100644 --- a/guix/scripts/weather.scm +++ b/guix/scripts/weather.scm @@ -339,8 +339,9 @@ Report the availability of substitutes.\n")) "Load the manifest from FILE and return the list of packages it refers to." (let* ((user-module (make-user-module '((guix profiles) (gnu)))) (manifest (load* file user-module))) - (map manifest-entry-item - (manifest-transitive-entries manifest)))) + (delete-duplicates (map manifest-entry-item + (manifest-transitive-entries manifest)) + eq?))) ;;; -- cgit v1.2.3