提交 8d22710c 编写于 作者: K Kohsuke Kawaguchi

allow core updates to come from other IDs

上级 370a51fb
......@@ -408,10 +408,10 @@ public class UpdateSite {
Data(JSONObject o) {
this.sourceId = (String)o.get("id");
if (sourceId.equals(UpdateCenter.ID_DEFAULT)) {
core = new Entry(sourceId, o.getJSONObject("core"), url);
}
else {
JSONObject c = o.optJSONObject("core");
if (c!=null) {
core = new Entry(sourceId, c, url);
} else {
core = null;
}
for(Map.Entry<String,JSONObject> e : (Set<Map.Entry<String,JSONObject>>)o.getJSONObject("plugins").entrySet()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册