From a342f35316a921d39e204e3558d55e8013f94e09 Mon Sep 17 00:00:00 2001 From: Tomasz Heimowski Date: Thu, 30 Apr 2015 21:28:48 +0200 Subject: [PATCH] convert from nuget - do not duplicate sources --- src/Paket.Core/NugetConvert.fs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Paket.Core/NugetConvert.fs b/src/Paket.Core/NugetConvert.fs index 308e68983f..38ca056a24 100644 --- a/src/Paket.Core/NugetConvert.fs +++ b/src/Paket.Core/NugetConvert.fs @@ -127,7 +127,11 @@ type NugetConfig = |> List.filter (fun (key,_) -> Set.contains key disabledSources |> not) |> List.map (fun (key,value) -> value, getAuth key) - { PackageSources = if clearSources then sources else nugetConfig.PackageSources @ sources + { PackageSources = if clearSources then sources + else + nugetConfig.PackageSources @ sources + |> Seq.distinct + |> List.ofSeq PackageRestoreEnabled = match configNode |> getNode "packageRestore" |> Option.bind (tryGetValue "enabled") with | Some value -> bool.Parse(value)