From 1e16f02b4843cb34bb5ea768d1a5409a3c72264f Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Tue, 1 Dec 2020 14:51:19 +1100 Subject: [PATCH] Fix bug in package loader - allow loading version with later patch if old version is missing --- .../fhir/utilities/npm/FilesystemPackageCacheManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/FilesystemPackageCacheManager.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/FilesystemPackageCacheManager.java index 9dc317d2d..043161698 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/FilesystemPackageCacheManager.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/FilesystemPackageCacheManager.java @@ -221,6 +221,11 @@ public class FilesystemPackageCacheManager extends BasePackageCacheManager imple return retVal; } + retVal = super.loadFromPackageServer(id, VersionUtilities.getMajMin(version)+".x"); + if (retVal != null) { + return retVal; + } + // ok, well, we'll try the old way return fetchTheOldWay(id, version); }