Fix problem not finding current version of extensions pack for non-R5 versions

This commit is contained in:
Grahame Grieve 2024-12-08 18:09:12 +03:00
parent 2eb5140864
commit 2ce941c527
1 changed files with 3 additions and 0 deletions

View File

@ -758,6 +758,9 @@ public class FilesystemPackageCacheManager extends BasePackageCacheManager imple
} else if (id.startsWith("hl7.fhir.r6")) {
InputStream stream = fetchFromUrlSpecific(Utilities.pathURL("https://build.fhir.org", id + ".tgz"), false);
return new InputStreamWithSrc(stream, Utilities.pathURL("https://build.fhir.org", id + ".tgz"), "current");
} else if (id.startsWith("hl7.fhir.uv.extensions.")) {
InputStream stream = fetchFromUrlSpecific(Utilities.pathURL("https://build.fhir.org/ig/HL7/fhir-extensions/", id + ".tgz"), false);
return new InputStreamWithSrc(stream, Utilities.pathURL("https://build.fhir.org/ig/HL7/fhir-extensions/", id + ".tgz"), "current");
} else {
throw new FHIRException("The package '" + id + "' has no entry on the current build server (" + ciList + ")");
}