Skip to content

Commit

Permalink
convert - ignore disabled upstream feeds - fixes #1098
Browse files Browse the repository at this point in the history
  • Loading branch information
theimowski committed Oct 3, 2015
1 parent eab7884 commit 7d63416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Paket.Core/NugetConvert.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7d63416

Please sign in to comment.