From 7d634169d009f7e96dab39516c7161a71ca49905 Mon Sep 17 00:00:00 2001 From: Tomasz Heimowski Date: Sat, 3 Oct 2015 08:02:11 +0200 Subject: [PATCH] convert - ignore disabled upstream feeds - fixes #1098 --- src/Paket.Core/NugetConvert.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Paket.Core/NugetConvert.fs b/src/Paket.Core/NugetConvert.fs index de888f19d1..9b902812a1 100644 --- a/src/Paket.Core/NugetConvert.fs +++ b/src/Paket.Core/NugetConvert.fs @@ -118,16 +118,16 @@ type NugetConfig = configNode |> getNode "packageSources" |> Option.toList |> List.collect getKeyValueList - |> List.filter (fun (key,_) -> Set.contains key disabledSources |> not) |> List.map (fun (key,value) -> key, (String.quoted value, getAuth key)) |> Map.ofList - + { PackageSources = if clearSources then sources else Map.fold (fun acc k v -> Map.add k v acc) nugetConfig.PackageSources sources + |> Map.filter (fun k _ -> Set.contains k disabledSources |> not) PackageRestoreEnabled = match configNode |> getNode "packageRestore" |> Option.bind (tryGetValue "enabled") with | Some value -> bool.Parse(value)