Skip to content

Commit

Permalink
Merge branch 'issue2138' of https://github.com/drwatson1/Paket into i…
Browse files Browse the repository at this point in the history
…ssue2138
  • Loading branch information
drwatson1 committed Feb 17, 2017
2 parents 0187bfe + 55be91a commit 901a1b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Paket.Core/NuGetV3.fs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ let calculateNuGet2Path(nugetUrl:string) =
| "https://api.nuget.org/v3/index.json" -> Some "https://nuget.org/api/v2"
| "http://api.nuget.org/v3/index.json" -> Some "http://www.nuget.org/api/v2"
| "https://api.nuget.org/v3/index.json" -> Some "https://www.nuget.org/api/v2"
| url when url.EndsWith("/nuget/v3/index.json") && url.Contains("pkgs.visualstudio.com") -> Some (url.Replace("/nuget/v3/index.json","/nuget/v2"))
| url when url.EndsWith("/nuget/v3/index.json") -> Some (url.Replace("/nuget/v3/index.json","/nuget/v2")) // For on-premise TFS we don't know host as for VSTS
| url when url.EndsWith("/nuget/v3/index.json") -> Some (url.Replace("/nuget/v3/index.json","/nuget/v2"))
| url when url.EndsWith("/api/v3/index.json") && url.Contains("visualstudio.com") -> Some (url.Replace("/api/v3/index.json",""))
| url when url.EndsWith("/api/v3/index.json") && url.Contains("myget.org") -> Some (url.Replace("/api/v3/index.json",""))
| url when url.EndsWith("v2") -> Some url
Expand Down

0 comments on commit 901a1b7

Please sign in to comment.