Fix: footprint libraries wizard fails with personal GitHub accounts (now uses https://api.github.com/users/xxx instead of https://api.github.com/orgs/xxx to retrieve the list of .pretty footprint libraries)

This commit is contained in:
jean-pierre charras 2016-07-20 10:24:24 +02:00
parent 3389529643
commit 03e5208c5b
1 changed files with 5 additions and 2 deletions

View File

@ -191,8 +191,11 @@ bool GITHUB_GETLIBLIST::repoURL2listURL( const wxString& aRepoURL,
if( repo.HasServer() && repo.HasPath() )
{
// goal: "https://api.github.com/orgs/KiCad"
wxString target_url( wxT( "https://api.github.com/orgs" ) );
// goal: "https://api.github.com/users/KiCad"
// or "https://api.github.com/orgs/KiCad"
// "https://api.github.com/users/..." works both for orgs and users
// if we just retrieve the .pretty list
wxString target_url( wxT( "https://api.github.com/users" ) );
target_url += repo.GetPath();
target_url += wxT( "/repos" );