Skip to content

Commit

Permalink
convert from nuget - do not duplicate sources
Browse files Browse the repository at this point in the history
  • Loading branch information
theimowski committed Apr 30, 2015
1 parent 0211954 commit a342f35
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit a342f35

Please sign in to comment.