Fix cibuild url lookup issue

This commit is contained in:
Grahame Grieve 2020-02-20 09:20:47 +11:00
parent 3f10fc3430
commit af850879fd
1 changed files with 7 additions and 1 deletions

View File

@ -614,7 +614,13 @@ public class PackageCacheManager {
if (buildInfo != null) {
for (JsonElement n : buildInfo) {
JsonObject o = (JsonObject) n;
if (canonical.equals(JSONUtil.str(o, "url")) || JSONUtil.str(o, "url").startsWith(canonical+"/ImplementationGuide/")) {
if (canonical.equals(JSONUtil.str(o, "url"))) {
return JSONUtil.str(o, "package-id");
}
}
for (JsonElement n : buildInfo) {
JsonObject o = (JsonObject) n;
if (JSONUtil.str(o, "url").startsWith(canonical+"/ImplementationGuide/")) {
return JSONUtil.str(o, "package-id");
}
}