Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
convert from nuget - do not duplicate sources
  • Loading branch information
theimowski committed Apr 30, 2015
commit a342f35316a921d39e204e3558d55e8013f94e09
6 changes: 5 additions & 1 deletion src/Paket.Core/NugetConvert.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down