From af850879fd1e3f2d166ea8dd7da3fb4204345a3c Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 20 Feb 2020 09:20:47 +1100 Subject: [PATCH] Fix cibuild url lookup issue --- .../org/hl7/fhir/utilities/cache/PackageCacheManager.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageCacheManager.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageCacheManager.java index 9c372d08a..fc41e1645 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageCacheManager.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageCacheManager.java @@ -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"); } }