Permalink
Browse files

ignore disabled feeds - closes #719

  • Loading branch information...
theimowski committed Mar 24, 2015
1 parent f63ff9f commit 7cabd2715a2a62f7b0691b1455ed43cf8d4b138b
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/Paket.Core/NugetConvert.fs
@@ -106,10 +106,19 @@ type NugetConfig =
|> optGetNode (XmlConvert.EncodeLocalName key)
|> Option.bind getAuth'
let disabledSources =
configNode |> getNode "disabledPackageSources"
|> Option.toList
|> List.collect getKeyValueList
|> List.filter (fun (_,disabled) -> disabled.Equals("true", StringComparison.OrdinalIgnoreCase))
|> List.map fst
|> Set.ofList
let sources =
configNode |> getNode "packageSources"
|> Option.toList
|> List.collect getKeyValueList
|> 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

0 comments on commit 7cabd27

Please sign in to comment.