From 021320be1b688e606d4671e23944c094e8063746 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Charras Date: Wed, 20 Jul 2016 15:56:19 -0400 Subject: [PATCH] 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) --- pcbnew/github/github_getliblist.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pcbnew/github/github_getliblist.cpp b/pcbnew/github/github_getliblist.cpp index 7ef26553b2..00fcaca246 100644 --- a/pcbnew/github/github_getliblist.cpp +++ b/pcbnew/github/github_getliblist.cpp @@ -217,8 +217,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" );