Skip to content

Commit

Permalink
name setting node as it's done by NuGet itself
Browse files Browse the repository at this point in the history
  • Loading branch information
mexx committed Oct 12, 2014
1 parent c21aac9 commit f909f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Paket.Core/NugetConvert.fs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let private readPackageSources(configFile : FileInfo) =
doc.Load configFile.FullName
[for node in doc.SelectNodes("//packageSources/add[@value]") ->
let url = node.Attributes.["value"].Value
let auth = doc.SelectNodes(sprintf "//packageSourceCredentials/%s" node.Attributes.["key"].Value)
let auth = doc.SelectNodes(sprintf "//packageSourceCredentials/%s" (XmlConvert.EncodeLocalName node.Attributes.["key"].Value))
|> Seq.cast<XmlNode>
|> Seq.firstOrDefault
|> Option.map (fun node -> {Username = node.SelectSingleNode("//add[@key='Username']").Attributes.["value"].Value
Expand Down

0 comments on commit f909f40

Please sign in to comment.